_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement15.ts_0_40 | //@target: ES6
for (var [a, b] of X) {
} | {
"end_byte": 40,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement15.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement3.ts_0_38 | //@target: ES6
for (var a, b of X) {
} | {
"end_byte": 38,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement11.ts_0_42 | //@target: ES6
for (const [a, b] of X) {
} | {
"end_byte": 42,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement25.ts_0_186 | // @target: esnext
// repro from https://github.com/microsoft/TypeScript/issues/54769
for (let [x = 'a' in {}] of [[]]) console.log(x)
for (let {x = 'a' in {}} of [{}]) console.log(x)
| {
"end_byte": 186,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement25.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement4.ts_0_39 | //@target: ES6
for (var a = 1 of X) {
} | {
"end_byte": 39,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement22.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/parserForOfStatement22.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement16.ts_0_40 | //@target: ES6
for (var {a, b} of X) {
} | {
"end_byte": 40,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement16.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement12.ts_0_42 | //@target: ES6
for (const {a, b} of X) {
} | {
"end_byte": 42,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement12.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement13.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/parserForOfStatement13.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement5.ts_0_43 | //@target: ES6
for (var a: number of X) {
} | {
"end_byte": 43,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement5.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement23.ts_0_96 | // @target: esnext
async function foo(x: any) {
var async;
for await (async of x) {}
}
| {
"end_byte": 96,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement23.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement17.ts_0_34 | //@target: ES6
for (var of; ;) { } | {
"end_byte": 34,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement17.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement18.ts_0_37 | //@target: ES6
for (var of of of) { } | {
"end_byte": 37,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement18.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement19.ts_0_37 | //@target: ES6
for (var of in of) { } | {
"end_byte": 37,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement19.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts_0_719 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export function lastOf(items: any[]): any {
return (items === null || items.l... | {
"end_byte": 719,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts_724_9762 | export class AstPath {
public asts: TypeScript.AST[] = [];
public top: number = -1;
static reverseIndexOf(items: any[], index: number): any {
return (items === null || items.length <= index) ? null : items[items.length - index - 1];
}
public clone(): AstPath {
... | {
"end_byte": 9762,
"start_byte": 724,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts_9772_18121 | public isBodyOfBlock(): boolean {
return this.count() >= 2 &&
this.asts[this.top - 1].nodeType === TypeScript.NodeType.Block &&
(<TypeScript.Block>this.asts[this.top - 1]).statements == this.asts[this.top - 0];
}
public isBodyOfFor(): boolean {
re... | {
"end_byte": 18121,
"start_byte": 9772,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts_18131_25295 | public isArgumentListOfCall(): boolean {
return this.count() >= 2 &&
this.asts[this.top - 0].nodeType === TypeScript.NodeType.List &&
this.asts[this.top - 1].nodeType === TypeScript.NodeType.Call &&
(<TypeScript.CallExpression>this.asts[this.top - 1]).argument... | {
"end_byte": 25295,
"start_byte": 18131,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserS7.6.1.1_A1.10.ts_0_324 | // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The "for" token can not be used as identifier
*
* @path ch07/7.6/7.6.1/7.6.1.1/S7.6.1.1_A1.10.js
* @description Checking if execution of "for=1" fails
* @negative
*/
//for = ... | {
"end_byte": 324,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserS7.6.1.1_A1.10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserAstSpans1.ts_0_3581 | /** i1 is interface with properties*/
interface i1 {
/** i1_p1*/
i1_p1: number;
/** i1_f1*/
i1_f1(): void;
/** i1_l1*/
i1_l1: () => void;
i1_nc_p1: number;
i1_nc_f1(): void;
i1_nc_l1: () => void;
p1: number;
f1(): void;
l1: () => void;
nc_p1: number;
nc_f1(): void... | {
"end_byte": 3581,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserAstSpans1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserKeywordsAsIdentifierName1.ts_0_55 | var big = {
break : 0,
super : 0,
const : 0
}
| {
"end_byte": 55,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserKeywordsAsIdentifierName1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts_0_209 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' /> | {
"end_byte": 209,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts_211_8745 | module TypeScript {
export enum TokenID {
// Keywords
Any,
Bool,
Break,
Case,
Catch,
Class,
Const,
Continue,
Debugger,
Default,
Delete,
Do,
Else,
Enum,
Export,
Extends,
Dec... | {
"end_byte": 8745,
"start_byte": 211,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts_8750_16826 | setTokenInfo(TokenID.Constructor, Reservation.TypeScriptAndJSFutureStrict, OperatorPrecedence.None, NodeType.None, OperatorPrecedence.None, NodeType.None, "constructor", ErrorRecoverySet.Func);
setTokenInfo(TokenID.Get, Reservation.TypeScript, OperatorPrecedence.None, NodeType.None, OperatorPrecedence.None, NodeTyp... | {
"end_byte": 16826,
"start_byte": 8750,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts_16831_24524 | setTokenInfo(TokenID.PlusEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgAdd, OperatorPrecedence.None, NodeType.None, "+=", ErrorRecoverySet.BinOp); // +=
setTokenInfo(TokenID.MinusEquals, Reservation.None, OperatorPrecedence.Assignment, NodeType.AsgSub, OperatorPrecedence.None, NodeType.None, ... | {
"end_byte": 24524,
"start_byte": 16831,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts_24530_28455 | export function lookupToken(tokenId: TokenID): TokenInfo {
return tokenTable[tokenId];
}
export enum TokenClass {
Punctuation,
Keyword,
Operator,
Comment,
Whitespace,
Identifier,
Literal,
}
export class SavedToken {
constructor (p... | {
"end_byte": 28455,
"start_byte": 24530,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts_0_9217 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export class BlockIntrinsics {
public prototype = undefined;
public ... | {
"end_byte": 9217,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserS7.9_A5.7_T1.ts_0_549 | // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Since LineTerminator(LT) between Postfix Increment/Decrement Operator(I/DO) and operand is not allowed, two IO(just as two DO and their combination)
* between two references separ... | {
"end_byte": 549,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserS7.9_A5.7_T1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserS7.6_A4.2_T1.ts_3_1973 | Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Correct interpretation of RUSSIAN ALPHABET
*
* @path ch07/7.6/S7.6_A4.2_T1.js
* @description Check RUSSIAN CAPITAL ALPHABET
*/
//CHECK#А-Я
var \u0410 = 1;
if (А !== 1) {
$ERRO... | {
"end_byte": 1973,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserS7.6_A4.2_T1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts_0_540 | // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Syntax constructions of switch statement
*
* @path ch12/12.11/S12.11_A3_T4.js
* @description Using "case" that has no Expresson after it. "CaseClause: case Expression : [Stateme... | {
"end_byte": 540,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserObjectCreationArrayLiteral1.ts_0_10 | new Foo[]; | {
"end_byte": 10,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserObjectCreationArrayLiteral1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts_0_1876 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
// TODO: refactor indent logic for use in emit
export class PrintContext {
... | {
"end_byte": 1876,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_0_8976 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export class ASTSpan {
public minChar: number = -1; // -1 = "undefined" or "... | {
"end_byte": 8976,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_8982_19428 | export class Identifier extends AST {
public sym: Symbol = null;
public cloId = -1;
public text: string;
// 'actualText' is the text that the user has entered for the identifier. the text might
// include any Unicode escape sequences (e.g.: \u0041 for 'A'). 'text', however, con... | {
"end_byte": 19428,
"start_byte": 8982,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_19434_30023 | export class CallExpression extends Expression {
constructor (nodeType: NodeType,
public target: AST,
public arguments: ASTList) {
super(nodeType);
this.minChar = this.target.minChar;
}
public signature: Signature = null;
... | {
"end_byte": 30023,
"start_byte": 19434,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_30029_36439 | export class RegexLiteral extends Expression {
constructor (public regex) {
super(NodeType.Regex);
}
public typeCheck(typeFlow: TypeFlow) {
this.type = typeFlow.regexType;
return this;
}
public emit(emitter: Emitter, tokenId: TokenID,... | {
"end_byte": 36439,
"start_byte": 30029,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_36445_45694 | export class FuncDecl extends AST {
public hint: string = null;
public fncFlags = FncFlags.None;
public returnTypeAnnotation: AST = null;
public symbols: IHashTable;
public variableArgList = false;
public signature: Signature;
public envids: Identifier[];
... | {
"end_byte": 45694,
"start_byte": 36445,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_45700_55560 | export class NamedDeclaration extends ModuleElement {
public leftCurlyCount = 0;
public rightCurlyCount = 0;
constructor (nodeType: NodeType,
public name: Identifier,
public members: ASTList) {
super(nodeType);
}
}
export cl... | {
"end_byte": 55560,
"start_byte": 45700,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_55566_64469 | export class WhileStatement extends Statement {
public body: AST = null;
constructor (public cond: AST) {
super(NodeType.While);
}
public isLoop() { return true; }
public emit(emitter: Emitter, tokenId: TokenID, startLine: boolean) {
emitter.emitParensA... | {
"end_byte": 64469,
"start_byte": 55566,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_64475_74494 | export class ForInStatement extends Statement {
constructor (public lval: AST, public obj: AST) {
super(NodeType.ForIn);
if (this.lval && (this.lval.nodeType == NodeType.VarDecl)) {
(<BoundDecl>this.lval).varFlags |= VarFlags.AutoInit;
}
}
publ... | {
"end_byte": 74494,
"start_byte": 64475,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_74500_82620 | export class SwitchStatement extends Statement {
public caseList: ASTList;
public defaultCase: CaseStatement = null;
public statement: ASTSpan = new ASTSpan();
constructor (public val: AST) {
super(NodeType.Switch);
}
public isCompoundStatement() { return tr... | {
"end_byte": 82620,
"start_byte": 74500,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts_82626_91303 | export class TryCatch extends Statement {
constructor (public tryNode: Try, public catchNode: Catch) {
super(NodeType.TryCatch);
}
public isCompoundStatement() { return true; }
public emit(emitter: Emitter, tokenId: TokenID, startLine: boolean) {
emitter.emitPar... | {
"end_byte": 91303,
"start_byte": 82626,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts_0_276 | export function removeClass (node:HTMLElement, className:string) {
node.className = node.className.replace(_classNameRegexp(className), function (everything, leftDelimiter, name, rightDelimiter) {
return leftDelimiter.length + rightDelimiter.length === 2 ? ' ' : '';
});
} | {
"end_byte": 276,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserNotRegex2.ts_0_129 | declare const A: any;
declare const B: any;
declare const C: any;
const x = (A / 2);
B(
C(),
() => { },
() => { }
);
| {
"end_byte": 129,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserNotRegex2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserDebuggerStatement1.ts_0_8 | debugger | {
"end_byte": 8,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserDebuggerStatement1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts_0_4815 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export module CompilerDiagnostics {
export var debug = false;
export ... | {
"end_byte": 4815,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName2.ts_0_15 | var v : x.void; | {
"end_byte": 15,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserUsingConstructorAsIdentifier.ts_8_1763 | function define(constructor, instanceMembers, staticMembers) {
constructor = constructor || function () { };
PluginUtilities.Utilities.markSupportedForProcessing(constructor);
if (instanceMembers) {
initializeProperties(constructor.prototype, instanceMembers);
... | {
"end_byte": 1763,
"start_byte": 8,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserUsingConstructorAsIdentifier.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserObjectCreationArrayLiteral4.ts_0_13 | new Foo[1](); | {
"end_byte": 13,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserObjectCreationArrayLiteral4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserUnicode1.ts_0_195 | try {
var \u0078x = 6;
if (xx !== 6) {
$ERROR('#6.1: var \\u0078x = 1; xx === 6. Actual: ' + (xx));
}
}
catch (e) {
$ERROR('#6.2: var \\u0078x = 1; xx === 6. Actual: ' + (xx));
} | {
"end_byte": 195,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserUnicode1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserNoASIOnCallAfterFunctionExpression1.ts_0_43 | var x = function () { }
(<any>window).foo;
| {
"end_byte": 43,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserNoASIOnCallAfterFunctionExpression1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserAdditiveExpression1.ts_0_22 | m.index+1+m[0].length; | {
"end_byte": 22,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserAdditiveExpression1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserUnicodeWhitespaceCharacter1.ts_0_20 | function foo(){ }
| {
"end_byte": 20,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserUnicodeWhitespaceCharacter1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserInExpression1.ts_0_34 | console.log("a" in { "a": true }); | {
"end_byte": 34,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserInExpression1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserSbp_7.9_A9_T3.ts_0_343 | // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Check Do-While Statement for automatic semicolon insertion
*
* @path bestPractice/Sbp_7.9_A9_T3.js
* @description Execute do { \n ; \n }while(false) true
*/
//CHECK#1
do {
;... | {
"end_byte": 343,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserSbp_7.9_A9_T3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserS7.3_A1.1_T2.ts_0_398 | // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* LINE FEED (U+000A) may occur between any two tokens
*
* @path ch07/7.3/S7.3_A1.1_T2.js
* @description Insert real LINE FEED between tokens of var x=1
*/
//CHECK#1
var
x
=
1;
i... | {
"end_byte": 398,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserS7.3_A1.1_T2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserOverloadOnConstants1.ts_0_232 | interface Document {
createElement(tagName: string): HTMLElement;
createElement(tagName: 'canvas'): HTMLCanvasElement;
createElement(tagName: 'div'): HTMLDivElement;
createElement(tagName: 'span'): HTMLSpanElement;
} | {
"end_byte": 232,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserOverloadOnConstants1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserVoidExpression1.ts_0_7 | void 0; | {
"end_byte": 7,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserVoidExpression1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndParenthesizedFunctionInTernary.ts_0_94 | let a: any;
const c = true ? (a) : (function() {});
const d = true ? (a) : ((function() {}));
| {
"end_byte": 94,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndParenthesizedFunctionInTernary.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserUnicode3.ts_3_19 | ass 剩下 {
} | {
"end_byte": 19,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserUnicode3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource8.ts_0_6437 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export class AssignScopeContext {
constructor (public scopeChain: ScopeChain... | {
"end_byte": 6437,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource8.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource8.ts_6438_16823 | {
var funcDecl = <FuncDecl>ast;
var container: Symbol = null;
var localContainer: Symbol = null;
if (funcDecl.type) {
localContainer = ast.type.symbol;
}
var isStatic = hasFlag(funcDecl.fncFlags, FncFlags.Static);
var isInnerStatic = isStatic && cont... | {
"end_byte": 16823,
"start_byte": 6438,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource8.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource8.ts_16829_20475 | export function preAssignCatchScopes(ast: AST, context: AssignScopeContext) {
var catchBlock = <Catch>ast;
if (catchBlock.param) {
var catchTable = new ScopedMembers(new DualStringHashTable(new StringHashTable(), new StringHashTable())); // REVIEW: Should we be allocating a public table inst... | {
"end_byte": 20475,
"start_byte": 16829,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource8.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts_0_50 | let a: any;
const c = true ? (a) : function() {};
| {
"end_byte": 50,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserParenthesizedVariableAndFunctionInTernary.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserImportDeclaration1.ts_0_50 | import TypeScript = TypeScriptServices.TypeScript; | {
"end_byte": 50,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserImportDeclaration1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserUnicode2.ts_3_175 | r 才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüß才能ソЫⅨ蒤郳र्क्ड्राüışğİliيونيكودöÄüßAbcd123 = 1; | {
"end_byte": 175,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserUnicode2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts_0_10276 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export class Binder {
constructor (public checker: TypeChecker) { }
p... | {
"end_byte": 10276,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserSyntaxWalker.generated.ts_3_7443 | declare module "fs" {
// export class File {
// constructor(filename: string);
// public ReadAllText(): string;
// }
// export interface IFile {
// [index: number]: string;
// }
//}
//import fs = module("fs");
//module TypeScriptAllInOne {
// export class Program {
// stati... | {
"end_byte": 7443,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserSyntaxWalker.generated.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserEmptyStatement1.ts_0_18 | ; ;
var a = 1;
;
| {
"end_byte": 18,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserEmptyStatement1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserExportAsFunctionIdentifier.ts_0_76 | interface Foo {
export(): string;
}
var f: Foo;
var x = f.export();
| {
"end_byte": 76,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserExportAsFunctionIdentifier.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource6.ts_0_8746 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export class TypeCollectionContext {
public script: Script = null;
c... | {
"end_byte": 8746,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource6.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts_0_3162 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export interface IAstWalker {
walk(ast: AST, parent: AST): AST;
optio... | {
"end_byte": 3162,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts_3172_12927 | private initChildrenWalkers(): void {
this.childrenWalkers[NodeType.None] = ChildrenWalkers.walkNone;
this.childrenWalkers[NodeType.Empty] = ChildrenWalkers.walkNone;
this.childrenWalkers[NodeType.EmptyExpr] = ChildrenWalkers.walkNone;
this.childrenWalkers[NodeType.True] ... | {
"end_byte": 12927,
"start_byte": 3172,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts_12940_13679 | this.childrenWalkers[NodeType.Comment] = ChildrenWalkers.walkNone;
this.childrenWalkers[NodeType.Debugger] = ChildrenWalkers.walkNone;
// Verify the code is up to date with the enum
for (var e in (<any>NodeType)._map) {
if ((<any>this.childrenWalkers)[e] === undefine... | {
"end_byte": 13679,
"start_byte": 12940,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts_13685_22234 | module ChildrenWalkers {
export function walkNone(preAst: ASTList, parent: AST, walker: IAstWalker): void {
// Nothing to do
}
export function walkListChildren(preAst: ASTList, parent: AST, walker: IAstWalker): void {
var len = preAst.members.length;
if (walk... | {
"end_byte": 22234,
"start_byte": 13685,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts_22244_26916 | export function walkTryCatchChildren(preAst: TryCatch, parent: AST, walker: IAstWalker): void {
if (preAst.tryNode) {
preAst.tryNode = <Try>walker.walk(preAst.tryNode, preAst);
}
if ((preAst.catchNode) && walker.options.goNextSibling) {
preAst.catchNo... | {
"end_byte": 26916,
"start_byte": 22244,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserNotRegex1.ts_2_121 | if (a.indexOf(-(4/3))) // We should not get a regex here because of the / in the comment.
{
return true;
} | {
"end_byte": 121,
"start_byte": 2,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserNotRegex1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserObjectCreationArrayLiteral3.ts_0_12 | new Foo[](); | {
"end_byte": 12,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserObjectCreationArrayLiteral3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserDebuggerStatement2.ts_0_9 | debugger; | {
"end_byte": 9,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserDebuggerStatement2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts_0_5885 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export function hasFlag(val: number, flag: number) {
return (val & flag) != ... | {
"end_byte": 5885,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts_5891_8817 | export enum FncFlags {
None = 0,
Exported = 1,
Private = 1 << 1,
Public = 1 << 2,
Ambient = 1 << 3,
Static = 1 << 4,
LocalStatic = 1 << 5,
GetAccessor = 1 << 6,
SetAccessor = 1 << 7,
Definition = 1 << 8,
Signature = 1 << 9,
... | {
"end_byte": 8817,
"start_byte": 5891,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName1.ts_0_15 | var v : void.x; | {
"end_byte": 15,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserOptionalTypeMembers1.ts_0_169 | interface PropertyDescriptor2 {
configurable?: boolean;
enumerable?: boolean;
value?: any;
writable?: boolean;
get?(): any;
set?(v: any): void;
} | {
"end_byte": 169,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserOptionalTypeMembers1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource3.ts_0_2117 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
// Note: Any addition to the NodeType should also be supported with addition to AstWa... | {
"end_byte": 2117,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserKeywordsAsIdentifierName2.ts_0_81 | // 'public' should be marked unusable, should complain on trailing /*
a.public /* | {
"end_byte": 81,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserKeywordsAsIdentifierName2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName0.ts_0_13 | var v : void; | {
"end_byte": 13,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName0.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserS7.2_A1.5_T2.ts_3_558 | Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* NO-BREAK SPACE (U+00A0) between any two tokens is allowed
*
* @path ch07/7.2/S7.2_A1.5_T2.js
* @description Insert real NO-BREAK SPACE between tokens of var x=1
*/
//CHECK#1
eva... | {
"end_byte": 558,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserS7.2_A1.5_T2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts_0_6767 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript.AstWalkerWithDetailCallback {
export interface AstWalkerDetailCallback {
EmptyC... | {
"end_byte": 6767,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts_0_6893 | // Copyright (c) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0.
// See LICENSE.txt in the project root for complete license information.
///<reference path='typescript.ts' />
module TypeScript {
export class Continuation {
public exceptionBlock = -1;
constructor (... | {
"end_byte": 6893,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts_6899_12426 | export function preCollectModuleTypes(ast: AST, parent: AST, context: TypeCollectionContext) {
var scopeChain = context.scopeChain;
var moduleDecl: ModuleDeclaration = <ModuleDeclaration>ast;
var isAmbient = hasFlag(moduleDecl.modFlags, ModuleFlags.Ambient);
var isEnum = hasFlag(module... | {
"end_byte": 12426,
"start_byte": 6899,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts_12432_22584 | export function preCollectClassTypes(ast: AST, parent: AST, context: TypeCollectionContext) {
var scopeChain = context.scopeChain;
var classDecl = <ClassDeclaration>ast;
var classType: Type;
var instanceType: Type;
var typeSymbol: TypeSymbol = null;
var className = (<Ide... | {
"end_byte": 22584,
"start_byte": 12432,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts_22590_26350 | export function preCollectVarDeclTypes(ast: AST, parent: AST, context: TypeCollectionContext) {
var scopeChain = context.scopeChain;
var varDecl = <VarDecl>ast;
var isAmbient = hasFlag(varDecl.varFlags, VarFlags.Ambient);
var isExported = hasFlag(varDecl.varFlags, VarFlags.Exported);
... | {
"end_byte": 26350,
"start_byte": 22590,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts_26356_36100 | export function preCollectFuncDeclTypes(ast: AST, parent: AST, context: TypeCollectionContext) {
var scopeChain = context.scopeChain;
// REVIEW: This will have to change when we move to "export"
if (context.scopeChain.moduleDecl) {
context.scopeChain.moduleDecl.recordNonInterface();... | {
"end_byte": 36100,
"start_byte": 26356,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts_36106_38535 | export function preCollectTypes(ast: AST, parent: AST, walker: IAstWalker) {
var context: TypeCollectionContext = walker.state;
var go = false;
var scopeChain = context.scopeChain;
if (ast.nodeType == NodeType.Script) {
var script: Script = <Script>ast;
context.s... | {
"end_byte": 38535,
"start_byte": 36106,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts_0_1031 | /// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... | {
"end_byte": 1031,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parser15.4.4.14-9-2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts_0_683 | // @allowUnreachableCode: true
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must re... | {
"end_byte": 683,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parser10.1.1-8gs.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/parserObjectCreationArrayLiteral2.ts_0_11 | new Foo[1]; | {
"end_byte": 11,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/parserObjectCreationArrayLiteral2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts_0_33 | function A(): (public B) => C {
} | {
"end_byte": 33,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList5.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList1.ts_0_29 | class C {
F(...A, B) { }
} | {
"end_byte": 29,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList4.ts_0_24 | function F(public A) {
} | {
"end_byte": 24,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ParameterLists/parserParameterList4.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.