Skip to content

Instantly share code, notes, and snippets.

@azz
Created May 7, 2017 05:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save azz/3ca82b8c5f5451fee18c638f5ff0a512 to your computer and use it in GitHub Desktop.
../TypeScript/tests/cases/compiler/abstractPropertyNegative.ts: Error: Comment "error, not same type" was not printed. Please report this error!
at astComments.forEach.comment (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:67:15)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:85:3)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:217:25)
at err (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:331:16)
at patterns.forEach.pattern (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:375:7)
at Array.forEach (native)
../TypeScript/tests/cases/compiler/aliasErrors.ts: SyntaxError: Identifier expected. (13:11)
11 | import m = no;
12 | import m2 = no.mod;
> 13 | import n = 5;
| ^
14 | import o = "s";
15 | import q = null;
16 | import r = undefined;
../TypeScript/tests/cases/compiler/aliasUsageInGenericFunction.ts: SyntaxError: JSX element 'IHasVisualizationModel' has no corresponding closing tag. (23:19)
21 | }
22 | var r = foo({ a: moduleA });
> 23 | var r2 = foo({ a: <IHasVisualizationModel>null });
| ^
24 |
../TypeScript/tests/cases/compiler/aliasUsageInOrExpression.ts: SyntaxError: Expression expected. (23:39)
21 | var d2: IHasVisualizationModel = i || moduleA;
22 | var d2: IHasVisualizationModel = moduleA || i;
> 23 | var e: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null || { x: moduleA };
| ^
24 | var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x: moduleA } : null;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,4 +8,5 @@
// @Filename: aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.ts
+
import moduleA = require("./aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
var d = b.q3;
../TypeScript/tests/cases/compiler/ambiguousGenericAssertion1.ts: SyntaxError: Identifier expected. (3:11)
1 | function f<T>(x: T): T { return null; }
2 | var r = <T>(x: T) => x;
> 3 | var r2 = < <T>(x: T) => T>f; // valid
| ^
4 | var r3 = <<T>(x: T) => T>f; // ambiguous, appears to the parser as a << operation
5 |
../TypeScript/tests/cases/compiler/amdModuleName2.ts: SyntaxError: An AMD module cannot have multiple name assignments. (3:0)
1 | //@module: amd
2 | ///<amd-module name='FirstModuleName'/>
> 3 | ///<amd-module name='SecondModuleName'/>
| ^
4 | class Foo {
5 | x: number;
6 | constructor() {
../TypeScript/tests/cases/compiler/anonymousModules.ts: SyntaxError: ';' expected. (1:7)
> 1 | module {
| ^
2 | export var foo = 1;
3 |
4 | module {
../TypeScript/tests/cases/compiler/APISample_linter.ts: SyntaxError: '}' expected. (28:101)
26 | case ts.SyntaxKind.DoStatement:
27 | if ((<ts.IterationStatement>node).statement.kind !== ts.SyntaxKind.Block) {
> 28 | report(node, "A looping statement's contents should be wrapped in a block body.");
| ^
29 | }
30 | break;
31 |
../TypeScript/tests/cases/compiler/argumentsObjectIterator01_ES5.ts: SyntaxError: Expression expected. (8:11)
6 | result.push(arg + arg);
7 | }
> 8 | return <[any, any, any]>result;
| ^
9 | }
../TypeScript/tests/cases/compiler/argumentsObjectIterator01_ES6.ts: SyntaxError: Expression expected. (8:11)
6 | result.push(arg + arg);
7 | }
> 8 | return <[any, any, any]>result;
| ^
9 | }
../TypeScript/tests/cases/compiler/argumentsObjectIterator02_ES5.ts: SyntaxError: Expression expected. (10:11)
8 | result.push(arg + arg);
9 | }
> 10 | return <[any, any, any]>result;
| ^
11 | }
12 |
13 |
../TypeScript/tests/cases/compiler/argumentsObjectIterator02_ES6.ts: SyntaxError: Expression expected. (10:11)
8 | result.push(arg + arg);
9 | }
> 10 | return <[any, any, any]>result;
| ^
11 | }
12 |
13 |
../TypeScript/tests/cases/compiler/arrayBestCommonTypes.ts: SyntaxError: '}' expected. (32:23)
30 |
31 |
> 32 | var t1: { x: number; y: base; }[] = [{ x: 7, y: new derived() }, { x: 5, y: new base() }];
| ^
33 | var t2: { x: boolean; y: base; }[] = [{ x: true, y: new derived() }, { x: false, y: new base() }];
34 | var t3: { x: string; y: base; }[] = [{ x: undefined, y: new base() }, { x: '', y: new derived() }];
35 |
../TypeScript/tests/cases/compiler/arrayCast.ts: SyntaxError: Expression expected. (3:0)
1 | // Should fail. Even though the array is contextually typed with { id: number }[], it still
2 | // has type { foo: string }[], which is not assignable to { id: number }[].
> 3 | <{ id: number; }[]>[{ foo: "s" }];
| ^
4 |
5 | // Should succeed, as the {} element causes the type of the array to be {}[]
6 | <{ id: number; }[]>[{ foo: "s" }, {}];
../TypeScript/tests/cases/compiler/arraySigChecking.ts: SyntaxError: Type expected. (11:28)
9 | }
10 |
> 11 | var foo: { [index: any]: };
| ^
12 | }
13 |
14 | interface myInt {
../TypeScript/tests/cases/compiler/arrowFunctionMissingCurlyWithSemicolon.ts: SyntaxError: Expression expected. (2:14)
1 | // Should error at semicolon.
> 2 | var f = () => ;
| ^
3 | var b = 1 * 2 * 3 * 4;
4 | var square = (x: number) => x * x;
../TypeScript/tests/cases/compiler/arrowFunctionsMissingTokens.ts: SyntaxError: '=>' expected. (3:15)
1 |
2 | module missingArrowsWithCurly {
> 3 | var a = () { };
| ^
4 |
5 | var b = (): void { }
6 |
../TypeScript/tests/cases/compiler/arrowFunctionWithObjectLiteralBody1.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (1:14)
> 1 | var v = a => <any>{}
| ^
../TypeScript/tests/cases/compiler/arrowFunctionWithObjectLiteralBody2.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (1:19)
> 1 | var v = a => <any><any>{}
| ^
../TypeScript/tests/cases/compiler/arrowFunctionWithObjectLiteralBody3.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:14)
1 | // @target: es6
> 2 | var v = a => <any>{}
| ^
../TypeScript/tests/cases/compiler/arrowFunctionWithObjectLiteralBody4.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:19)
1 | // @target: es6
> 2 | var v = a => <any><any>{}
| ^
../TypeScript/tests/cases/compiler/arrowFunctionWithObjectLiteralBody5.ts: SyntaxError: '}' expected. (1:27)
> 1 | var a = () => <Error>{ name: "foo", message: "bar" };
| ^
2 |
3 | var b = () => (<Error>{ name: "foo", message: "bar" });
4 |
../TypeScript/tests/cases/compiler/arrowFunctionWithObjectLiteralBody6.ts: SyntaxError: '}' expected. (2:27)
1 | // @target: es6
> 2 | var a = () => <Error>{ name: "foo", message: "bar" };
| ^
3 |
4 | var b = () => (<Error>{ name: "foo", message: "bar" });
5 |
../TypeScript/tests/cases/compiler/assertInWrapSomeTypeParameter.ts: SyntaxError: '>' expected. (2:25)
1 | class C<T extends C<T>> {
> 2 | foo<U extends C<C<T>>(x: U) {
| ^
3 | return null;
4 | }
5 | }
../TypeScript/tests/cases/compiler/assignmentCompatability16.ts: SyntaxError: Identifier expected. (6:31)
4 | }
5 | module __test2__ {
> 6 | export var obj = {one: <any[]>[1]};
| ^
7 | export var __val__obj = obj;
8 | }
9 | __test2__.__val__obj = __test1__.__val__obj4
../TypeScript/tests/cases/compiler/assignmentCompatability17.ts: SyntaxError: Identifier expected. (6:31)
4 | }
5 | module __test2__ {
> 6 | export var obj = {two: <any[]>[1]};
| ^
7 | export var __val__obj = obj;
8 | }
9 | __test2__.__val__obj = __test1__.__val__obj4
../TypeScript/tests/cases/compiler/autoLift2.ts: SyntaxError: ';' expected. (5:16)
3 | {
4 | constructor() {
> 5 | this.foo: any;
| ^
6 | this.bar: any;
7 | }
8 |
../TypeScript/tests/cases/compiler/badOverloadError.ts: SyntaxError: Expression expected. (2:21)
1 | function method() {
> 2 | var dictionary = <{ [index: string]: string; }>{};
| ^
3 | }
4 |
../TypeScript/tests/cases/compiler/baseIndexSignatureResolution.ts: SyntaxError: ',' expected. (12:22)
10 | [i: number]: Base
11 | }
> 12 | interface FooOf<TBase in Base> extends Foo {
| ^
13 | [i: number]: TBase
14 | }
15 | var x: FooOf<Derived> = null;
../TypeScript/tests/cases/compiler/bases.ts: SyntaxError: ';' expected. (7:14)
5 | class B {
6 | constructor() {
> 7 | this.y: any;
| ^
8 | }
9 | }
10 |
../TypeScript/tests/cases/compiler/bom-utf16be.ts: SyntaxError: Invalid character. (1:0)
> 1 | ��var x=10;
| ^
2 |
3 |
../TypeScript/tests/cases/compiler/bom-utf16le.ts: SyntaxError: Invalid character. (1:0)
> 1 | ��var x=10;
| ^
2 |
3 |
../TypeScript/tests/cases/compiler/callExpressionWithMissingTypeArgument1.ts: SyntaxError: Type expected. (1:6)
> 1 | Foo<a,,b>();
| ^
../TypeScript/tests/cases/compiler/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts: SyntaxError: ',' expected. (2:5)
1 | interface I<T> {
> 2 | <U in T>(u: U): U
| ^
3 | }
4 | var i: I<string>;
5 | var y = i(""); // y should be string
../TypeScript/tests/cases/compiler/capturedParametersInInitializers1.ts: SyntaxError: JSX element 'typeof' has no corresponding closing tag. (13:24)
11 | // ok -used in type
12 | let a;
> 13 | function foo3(y = { x: <typeof z>a }, z = 1) {
| ^
14 |
15 | }
../TypeScript/tests/cases/compiler/castExpressionParentheses.ts: SyntaxError: '}' expected. (5:8)
3 | // parentheses should be omitted
4 | // literals
> 5 | (<any>{a:0});
| ^
6 | (<any>[1,3,]);
7 | (<any>"string");
8 | (<any>23.0);
../TypeScript/tests/cases/compiler/castNewObjectBug.ts: SyntaxError: JSX element 'Foo' has no corresponding closing tag. (2:10)
1 | interface Foo { }
> 2 | var xx = <Foo> new Object();
| ^
../TypeScript/tests/cases/compiler/castOfAwait.ts: SyntaxError: JSX element 'number' has no corresponding closing tag. (6:32)
4 | typeof await 0;
5 | void await 0;
> 6 | await void <string> typeof <number> void await 0;
| ^
7 | await await 0;
8 | }
9 |
../TypeScript/tests/cases/compiler/castOfYield.ts: SyntaxError: JSX element 'number' has no corresponding closing tag. (4:5)
2 | <number> (yield 0);
3 | // Unlike await, yield is not allowed to appear in a simple unary expression.
> 4 | <number> yield 0;
| ^
5 | }
6 |
../TypeScript/tests/cases/compiler/castParentheses.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (11:10)
9 | var b = (<any>new a);
10 | var b = (<any>new a.b);
> 11 | var b = (<any>new a).b
| ^
../TypeScript/tests/cases/compiler/castTest.ts: SyntaxError: Identifier expected. (10:13)
8 | var s = <string>"";
9 |
> 10 | var ar = <any[]>null;
| ^
11 |
12 | var f = <(res : number) => void>null;
13 |
../TypeScript/tests/cases/compiler/class2.ts: SyntaxError: Declaration or statement expected. (1:28)
> 1 | class foo { constructor() { static f = 3; } }
| ^
../TypeScript/tests/cases/compiler/ClassDeclaration26.ts: SyntaxError: ';' expected. (2:21)
1 | class C {
> 2 | public const var export foo = 10;
| ^
3 |
4 | var constructor() { }
5 | }
../TypeScript/tests/cases/compiler/classExpressionWithDecorator1.ts: SyntaxError: Expression expected. (2:8)
1 | // @experimentaldecorators: true
> 2 | var v = @decorate class C { static p = 1 };
| ^
../TypeScript/tests/cases/compiler/classMemberWithMissingIdentifier.ts: SyntaxError: Declaration expected. (2:10)
1 | class C {
> 2 | public {};
| ^
3 | }
../TypeScript/tests/cases/compiler/classMemberWithMissingIdentifier2.ts: SyntaxError: Declaration expected. (2:10)
1 | class C {
> 2 | public {[name:string]:VariableDeclaration};
| ^
3 | }
../TypeScript/tests/cases/compiler/classUpdateTests.ts: SyntaxError: Declaration or statement expected. (93:2)
91 | class O {
92 | constructor() {
> 93 | public p1 = 0; // ERROR
| ^
94 | }
95 | }
96 |
../TypeScript/tests/cases/compiler/collisionCodeGenModuleWithUnicodeNames.ts: SyntaxError: Invalid character. (1:0)
> 1 | ��module Mb���0+h!����0 M  M ! M 0 > �1_0liJHFJCH/����Mb���0+h!����0 M  M ! M 0 > �1_0liJHFJCH/����Abcd123 {
| ^
2 |
3 | export class Mb���0+h!����0 M  M ! M 0 > �1_0liJHFJCH/����Mb���0+h!����0 M  M ! M 0 > �1_0liJHFJCH/����Abcd123 {
4 |
../TypeScript/tests/cases/compiler/commentOnDecoratedClassDeclaration.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/commentOnParenthesizedExpressionOpenParen1.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (3:1)
1 | var j;
2 | var f: () => any;
> 3 | <any>( /* Preserve */ j = f());
| ^
4 |
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -48,5 +48,5 @@
static set s3(/** this is value*/ value: number) {
c1.s1 = c1.s2(value);
- } /*setter*/ /*trailing comment 2 */
+ } /*trailing comment 2 */ /*setter*/
public nc_p1: number;
public nc_p2(b: number) {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -38,18 +38,15 @@
/// Triple slash comment
/** jsdoc comment */ function jsDocMixedComments2() {}
-jsDocMixedComments2(); /*** another jsDocComment*/
+jsDocMixedComments2(); /*** another jsDocComment*/ /// Triple slash comment
-/** jsdoc comment */ /// Triple slash comment
-function jsDocMixedComments3() {}
-jsDocMixedComments3(); /*** another jsDocComment*/
+/** jsdoc comment */ function jsDocMixedComments3() {}
+jsDocMixedComments3(); /*** another jsDocComment*/ /// Triple slash comment
-/** jsdoc comment */ /// Triple slash comment
-/// Triple slash comment 2
+/** jsdoc comment */ /// Triple slash comment 2
function jsDocMixedComments4() {}
-jsDocMixedComments4(); /*** another jsDocComment*/
+jsDocMixedComments4(); /*** another jsDocComment*/ /// Triple slash comment
/// Triple slash comment 1
-/** jsdoc comment */ /// Triple slash comment
-/// Triple slash comment 2
+/** jsdoc comment */ /// Triple slash comment 2
function jsDocMixedComments5() {}
jsDocMixedComments5();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,7 +4,6 @@
/** Enum of colors*/
-enum Colors /* blue */ { Cornflower, FancyPink }
+enum Colors /* blue */ { Cornflower, FancyPink } // trailing comment
/** Fancy name for 'blue'*/
-/** Fancy name for 'pink'*/ // trailing comment
-var x = Colors.Cornflower;
+/** Fancy name for 'pink'*/ var x = Colors.Cornflower;
x = Colors.FancyPink;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -40,5 +40,5 @@
function blah2(
- a: string /* single line multiple trailing comments */ /* second */
+ a: string /* second */ /* single line multiple trailing comments */
) {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,8 +3,8 @@
id1: /* c1 */ "hello",
id2: /*! @ngInject */ (details: any) => details.id,
- id3: /*! @ngInject */
- (details: any) => details.id,
- id4: /*! @ngInject */
- /* C2 */
+ /*! @ngInject */
+ id3: (details: any) => details.id,
+ /*! @ngInject */
+ id4: /* C2 */
(details: any) => details.id
};
../TypeScript/tests/cases/compiler/commentsTypeParameters.ts: Error: Comment "*type" was not printed. Please report this error!
at astComments.forEach.comment (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:67:15)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:85:3)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:217:25)
at err (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:331:16)
at patterns.forEach.pattern (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:375:7)
at Array.forEach (native)
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -14,5 +14,5 @@
/** this is multiline comment
* All these variables are of number type */
-var anotherAnotherVariable = 70; /* multiple trailing comments */ /* these are multiple trailing comments */
+var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */
/** Triple slash multiline comment*/
../TypeScript/tests/cases/compiler/commonSourceDirectory.ts: SyntaxError: ';' expected. (22:21)
20 | // @filename: /app/tsconfig.json
21 | {
> 22 | "compilerOptions": {
| ^
23 | "outDir": "bin",
24 | "typeRoots": ["../types"],
25 | "sourceMap": true,
../TypeScript/tests/cases/compiler/commonSourceDirectory_dts.ts: SyntaxError: ';' expected. (15:21)
13 | // @filename: /app/tsconfig.json
14 | {
> 15 | "compilerOptions": {
| ^
16 | "outDir": "bin",
17 | "sourceMap": true,
18 | "mapRoot": "myMapRoot",
../TypeScript/tests/cases/compiler/computedPropertiesInDestructuring1.ts: SyntaxError: '=' expected. (8:10)
6 |
7 | let foo2 = () => "bar";
> 8 | let { foo2(): bar3 } = { bar: "bar" };
| ^
9 |
10 | let [{ foo: bar4 }] = [{ bar: "bar" }];
11 | let [{ foo2(): bar5 }] = [{ bar: "bar" }];
../TypeScript/tests/cases/compiler/computedPropertiesInDestructuring1_ES6.ts: SyntaxError: '=' expected. (10:10)
8 |
9 | let foo2 = () => "bar";
> 10 | let { foo2(): bar3 } = { bar: "bar" };
| ^
11 |
12 | let [{ foo: bar4 }] = [{ bar: "bar" }];
13 | let [{ foo2(): bar5 }] = [{ bar: "bar" }];
../TypeScript/tests/cases/compiler/computedPropertiesInDestructuring2.ts: SyntaxError: '=' expected. (2:10)
1 | let foo2 = () => "bar";
> 2 | let { foo2(): bar3 } = {};
| ^
3 |
../TypeScript/tests/cases/compiler/computedPropertiesInDestructuring2_ES6.ts: SyntaxError: '=' expected. (4:10)
2 |
3 | let foo2 = () => "bar";
> 4 | let { foo2(): bar3 } = {};
| ^
5 |
../TypeScript/tests/cases/compiler/conflictMarkerTrivia1.ts: SyntaxError: Merge conflict marker encountered. (2:0)
1 | class C {
> 2 | <<<<<<< HEAD
| ^
3 | v = 1;
4 | =======
5 | v = 2;
../TypeScript/tests/cases/compiler/conflictMarkerTrivia2.ts: SyntaxError: Merge conflict marker encountered. (3:0)
1 | class C {
2 | foo() {
> 3 | <<<<<<< B
| ^
4 | a();
5 | }
6 | =======
../TypeScript/tests/cases/compiler/conflictMarkerTrivia4.ts: SyntaxError: Merge conflict marker encountered. (2:0)
1 | const x = <div>
> 2 | <<<<<<< HEAD
| ^
../TypeScript/tests/cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts: SyntaxError: ',' expected. (8:4)
6 | interface I1<
7 | T,
> 8 | U in I1<T, any> // Error, any does not satisfy the constraint I1<T, any>
| ^
9 | > {}
10 | interface I2<T, U in T> {}
11 |
../TypeScript/tests/cases/compiler/constraints0.ts: SyntaxError: ',' expected. (9:14)
7 | }
8 |
> 9 | interface C<T in A> {
| ^
10 | x: T
11 | }
12 |
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -18,15 +18,10 @@
"params": [
{
- "type": "TSParameterProperty",
- "accessibility": null,
- "isReadonly": false,
- "parameter": {
- "type": "Identifier",
- "name": "a",
+ "type": "Identifier",
+ "name": "a",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
- }
+ "type": "TSNumberKeyword"
}
},
Index:
===================================================================
---
+++
@@ -1,4 +1,3 @@
class foo {
- constructor (static a: number) {
- }
-}
\ No newline at end of file
+ constructor(a: number) {}
+}
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -18,15 +18,10 @@
"params": [
{
- "type": "TSParameterProperty",
- "accessibility": null,
- "isReadonly": false,
- "parameter": {
- "type": "Identifier",
- "name": "a",
+ "type": "Identifier",
+ "name": "a",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
- }
+ "type": "TSNumberKeyword"
}
},
Index:
===================================================================
---
+++
@@ -1,4 +1,3 @@
class foo {
- constructor (export a: number) {
- }
+ constructor(a: number) {}
}
../TypeScript/tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts: SyntaxError: ';' expected. (13:18)
11 | }
12 |
> 13 | import fs = module("fs");
| ^
14 |
15 |
16 | module TypeScriptAllInOne {
../TypeScript/tests/cases/compiler/contextualSignatureInstantiation1.ts: SyntaxError: '...' expected. (5:34)
3 | var r99 = map(e); // should be {}[] for S since a generic lambda is not inferentially typed
4 |
> 5 | declare function map2<S extends { length: number }, T>(f: (x: S) => T): (a: S[]) => T[];
| ^
6 | var e2 = <K>(x: string, y?: K) => x.length;
7 | var r100 = map2(e2); // type arg inference should fail for S since a generic lambda is not inferentially typed. Falls back to { length: number }
../TypeScript/tests/cases/compiler/contextualSignatureInstantiation2.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (4:9)
2 | var dot: <T, S>(f: (_: T) => S) => <U>(g: (_: U) => T) => (_: U) => S;
3 | dot = <T, S>(f: (_: T) => S) => <U>(g: (_: U) => T): (r:U) => S => (x) => f(g(x));
> 4 | var id: <T>(x:T) => T;
| ^
5 | var r23 = dot(id)(id);
../TypeScript/tests/cases/compiler/contextualSignatureInstatiationContravariance.ts: SyntaxError: ',' expected. (5:11)
3 | interface Elephant extends Animal { y2 }
4 |
> 5 | var f2: <T in Animal>(x: T, y: T) => void;
| ^
6 |
7 | var g2: (g: Giraffe, e: Elephant) => void;
8 | g2 = f2; // valid because both Giraffe and Elephant satisfy the constraint. T is Animal
../TypeScript/tests/cases/compiler/contextualSignatureInstatiationCovariance.ts: SyntaxError: ',' expected. (5:11)
3 | interface Giraffe extends Animal, TallThing { y }
4 |
> 5 | var f2: <T in Giraffe>(x: T, y: T) => void;
| ^
6 |
7 | var g2: (a: Animal, t: TallThing) => void;
8 | g2 = f2; // While neither Animal nor TallThing satisfy the constraint, T is at worst a Giraffe and compatible with both via covariance.
../TypeScript/tests/cases/compiler/contextualTyping.ts: SyntaxError: '}' expected. (31:5)
29 | var c3t1: (s: string) => string = (function(s) { return s });
30 | var c3t2 = <IFoo>({
> 31 | n: 1
| ^
32 | })
33 | var c3t3: number[] = [];
34 | var c3t4: () => IFoo = function() { return <IFoo>({}) };
../TypeScript/tests/cases/compiler/contextualTyping11.ts: SyntaxError: JSX element 'foo' has no corresponding closing tag. (1:42)
> 1 | class foo { public bar:{id:number;}[] = [<foo>({})]; }
| ^
../TypeScript/tests/cases/compiler/contextualTyping18.ts: SyntaxError: Expression expected. (1:24)
> 1 | var foo: {id:number;} = <{id:number;}>({ }); foo = {id: 5};
| ^
../TypeScript/tests/cases/compiler/contextualTyping25.ts: SyntaxError: Expression expected. (1:40)
> 1 | function foo(param:{id:number;}){}; foo(<{id:number;}>({}));
| ^
../TypeScript/tests/cases/compiler/contextualTyping26.ts: SyntaxError: Expression expected. (1:40)
> 1 | function foo(param:{id:number;}){}; foo(<{id:number;}>({}));
| ^
../TypeScript/tests/cases/compiler/contextualTyping27.ts: SyntaxError: Expression expected. (1:40)
> 1 | function foo(param:{id:number;}){}; foo(<{id:number;}>({}));
| ^
../TypeScript/tests/cases/compiler/contextualTyping34.ts: SyntaxError: Expression expected. (1:10)
> 1 | var foo = <{ id: number;}> ({id:4});
| ^
../TypeScript/tests/cases/compiler/contextualTyping35.ts: SyntaxError: Expression expected. (1:10)
> 1 | var foo = <{ id: number;}> {id:4, name: "as"};
| ^
../TypeScript/tests/cases/compiler/contextualTyping36.ts: SyntaxError: Expression expected. (1:10)
> 1 | var foo = <{ id: number; }[]>[{ id: 4 }, <{ id: number; }>({ })];
| ^
../TypeScript/tests/cases/compiler/contextualTyping37.ts: SyntaxError: Expression expected. (1:10)
> 1 | var foo = <{ id: number; }[]>[{ foo: "s" }, { }];
| ^
../TypeScript/tests/cases/compiler/contextualTyping38.ts: SyntaxError: Expression expected. (1:10)
> 1 | var foo = <{ (): number; }> function(a) { return a };
| ^
../TypeScript/tests/cases/compiler/contextualTyping39.ts: SyntaxError: Expression expected. (1:10)
> 1 | var foo = <{ (): number; }> function() { return "err"; };
| ^
../TypeScript/tests/cases/compiler/contextualTyping40.ts: SyntaxError: Expression expected. (1:10)
> 1 | var foo = <{():number; (i:number):number; }> function(){return 1;};
| ^
../TypeScript/tests/cases/compiler/contextualTyping41.ts: SyntaxError: Expression expected. (1:10)
> 1 | var foo = <{():number; (i:number):number; }> (function(){return "err";});
| ^
../TypeScript/tests/cases/compiler/contextualTyping7.ts: SyntaxError: Expression expected. (1:26)
> 1 | var foo:{id:number;}[] = [<{id:number;}>({})];
| ^
../TypeScript/tests/cases/compiler/contextualTyping8.ts: SyntaxError: Expression expected. (1:26)
> 1 | var foo:{id:number;}[] = [<{id:number;}>({})];
| ^
../TypeScript/tests/cases/compiler/controlFlowInstanceof.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -23,5 +23,5 @@
* @param {string} string String to repeat
* @param {number} times Number of times to repeat string. Integer.
- * @see http://jsperf.com/string-repeater/2
+ * @see http:jsperf.com/string-repeater/2
*/
function repeatString(string, times) {
../TypeScript/tests/cases/compiler/convertKeywordsYes.ts: SyntaxError: '(' expected. (177:21)
175 |
176 | class bigClass {
> 177 | public constructor = 0;
| ^
178 | public any = 0;
179 | public boolean = 0;
180 | public implements = 0;
../TypeScript/tests/cases/compiler/declarationEmitFirstTypeArgumentGenericFunctionType.ts: SyntaxError: '=' expected. (6:13)
4 |
5 | class X<A> {}
> 6 | var prop11: X<<Tany>() => Tany>; // spaces before the first type argument
| ^
7 | var prop12: X<(<Tany>() => Tany)>; // spaces before the first type argument
8 | function f1() {
9 | // Inferred return type
../TypeScript/tests/cases/compiler/declarationEmitInterfaceWithNonEntityNameExpressionHeritage.ts: SyntaxError: Expression expected. (4:24)
2 |
3 | class A {}
> 4 | interface Class extends typeof A {}
| ^
5 |
../TypeScript/tests/cases/compiler/declarationEmitInvalidExport.ts: SyntaxError: Declaration or statement expected. (7:0)
5 | }
6 | export type MyClass = typeof myClass;
> 7 | }
| ^
8 |
../TypeScript/tests/cases/compiler/declarationEmitPromise.ts: SyntaxError: Identifier expected. (14:51)
12 | let func = <T>(f: (a: A, b?: B, c?: C, d?: D, e?: E) => T): T =>
13 | f.apply(this, result);
> 14 | let rfunc: typeof func & {} = func as any; // <- This is the only difference
| ^
15 | return rfunc
16 | }
17 |
../TypeScript/tests/cases/compiler/declarationEmitUnknownImport2.ts: SyntaxError: '=' expected. (5:11)
3 | // @declaration: true
4 |
> 5 | import Foo From './Foo'; // Syntax error
| ^
6 | export default Foo
../TypeScript/tests/cases/compiler/declareIdentifierAsBeginningOfStatementExpression01.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/compiler/declFileCallSignatures.ts: SyntaxError: ',' expected. (33:5)
31 |
32 | export interface ICallSignatureWithOwnTypeParametes {
> 33 | <T in ICallSignature>(a: T): string
| ^
34 | }
35 |
36 | // @Filename: declFileCallSignatures_1.ts
../TypeScript/tests/cases/compiler/declFileConstructSignatures.ts: SyntaxError: ',' expected. (33:9)
31 |
32 | export interface IConstructSignatureWithOwnTypeParametes {
> 33 | new <T in IConstructSignature>(a: T): T
| ^
34 | }
35 |
36 | // @Filename: declFileConstructSignatures_1.ts
../TypeScript/tests/cases/compiler/declFileGenericType2.ts: SyntaxError: ',' expected. (7:34)
5 | }
6 | declare namespace templa.mvc {
> 7 | interface IController<ModelType in templa.mvc.IModel> {}
| ^
8 | }
9 | declare namespace templa.mvc {
10 | class AbstractController<ModelType extends templa.mvc.IModel>
../TypeScript/tests/cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (8:26)
6 | function f4<T extends (...args) => void>() { }
7 | function f5<T extends { (...args): void }>() { }
> 8 | var f6 = () => { return [<any>10]; }
| ^
9 |
10 |
11 |
../TypeScript/tests/cases/compiler/declInput.ts: SyntaxError: '}' expected. (9:41)
7 | public f() { return ''; }
8 | public g() { return {a: <bar>null, b: undefined, c: void 4 }; }
> 9 | public h(x = 4, y = null, z = '') { x++; }
| ^
10 | }
11 |
../TypeScript/tests/cases/compiler/declInput3.ts: SyntaxError: '}' expected. (9:41)
7 | public f() { return ''; }
8 | public g() { return {a: <bar>null, b: undefined, c: void 4 }; }
> 9 | public h(x = 4, y = null, z = '') { x++; }
| ^
10 | }
11 |
../TypeScript/tests/cases/compiler/decoratorInJsFile.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorInJsFile1.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/decoratorMetadataOnInferredType.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/decoratorMetadataPromise.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/decoratorMetadataRestParameterWithImportedType.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/decoratorMetadataWithConstructorType.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/decoratorWithUnderscoreMethod.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -82,16 +82,16 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Literal",
+ "value": 1
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": false,
+ "argument": {
"type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
"value": 2
}
@@ -102,16 +102,16 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Literal",
+ "value": 1
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": false,
+ "argument": {
"type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
"value": 2
}
@@ -122,18 +122,18 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": true,
+ "argument": {
"type": "Literal",
"value": 1
- },
- "right": {
- "type": "Literal",
- "value": 2
}
+ },
+ "right": {
+ "type": "Literal",
+ "value": 2
}
}
@@ -142,18 +142,18 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": true,
+ "argument": {
"type": "Literal",
"value": 1
- },
- "right": {
- "type": "Literal",
- "value": 2
}
+ },
+ "right": {
+ "type": "Literal",
+ "value": 2
}
}
@@ -162,17 +162,17 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Identifier",
+ "name": "x"
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": false,
+ "argument": {
"type": "Identifier",
"name": "x"
- },
- "right": {
- "type": "Identifier",
- "name": "x"
}
}
@@ -182,17 +182,17 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Identifier",
+ "name": "x"
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": false,
+ "argument": {
"type": "Identifier",
"name": "x"
- },
- "right": {
- "type": "Identifier",
- "name": "x"
}
}
@@ -202,18 +202,18 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": true,
+ "argument": {
"type": "Identifier",
"name": "x"
- },
- "right": {
- "type": "Identifier",
- "name": "x"
}
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "x"
}
}
@@ -222,18 +222,18 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": true,
+ "argument": {
"type": "Identifier",
"name": "x"
- },
- "right": {
- "type": "Identifier",
- "name": "x"
}
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "x"
}
}
Index:
===================================================================
---
+++
@@ -2,23 +2,23 @@
// errors
-1 ++;
+1++;
-(1)++;
-(1)--;
+1++;
+1--;
-++(1);
---(1);
+++1;
+--1;
-(1 + 2)++;
-(1 + 2)--;
+1 + 2++;
+1 + 2--;
-++(1 + 2);
---(1 + 2);
+++1 + 2;
+--1 + 2;
-(x + x)++;
-(x + x)--;
+x + x++;
+x + x--;
-++(x + x);
---(x + x);
+++x + x;
+--x + x;
//OK
@@ -29,9 +29,9 @@
--x;
-(x)++;
---(x);
+x++;
+--x;
-((x))++;
-((x))--;
+x++;
+x--;
x[x++]++;
../TypeScript/tests/cases/compiler/deeplyNestedCheck.ts: SyntaxError: ',' expected. (8:10)
6 |
7 | interface Snapshot<T> extends DataSnapshot {
> 8 | child<U in keyof T>(path: U): Snapshot<T[U]>
| ^
9 | }
10 |
../TypeScript/tests/cases/compiler/defaultArgsInFunctionExpressions.ts: SyntaxError: Expression expected. (25:4)
23 | module T { }
24 | module U {
> 25 | export var x;
| ^
26 | }
27 |
28 | var f6 = (t = T) => { };
../TypeScript/tests/cases/compiler/defaultValueInFunctionTypes.ts: SyntaxError: Expression expected. (2:8)
1 | var x: (a: number = 1) => number;
> 2 | var y = <(a : string = "") => any>(undefined)
| ^
../TypeScript/tests/cases/compiler/dontShowCompilerGeneratedMembers.ts: SyntaxError: Type parameter declaration expected. (3:5)
1 | var f: {
2 | x: number;
> 3 | <-
| ^
4 | };
../TypeScript/tests/cases/compiler/dottedModuleName.ts: SyntaxError: '{' or ';' expected. (3:28)
1 | module M {
2 | export module N {
> 3 | export function f(x:number)=>2*x;
| ^
4 | export module X.Y.Z {
5 | export var v2=f(v);
6 | }
../TypeScript/tests/cases/compiler/downlevelLetConst1.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/compiler/duplicateLocalVariable1.ts: SyntaxError: ';' expected. (3:3)
1 |
2 | // @allowUnreachableCode: true
> 3 | / /@module: commonjs
| ^
4 |
5 | //import FileManager = require('filemanager');
6 | //import App = require('app');
../TypeScript/tests/cases/compiler/duplicateTypeParameters2.ts: SyntaxError: ',' expected. (8:14)
6 | }
7 |
> 8 | interface I<T in A, T in B> {}
| ^
9 |
../TypeScript/tests/cases/compiler/emitBundleWithShebang1.ts: SyntaxError: Invalid character. (5:0)
3 | // @module: amd
4 |
> 5 | #!/usr/bin/env gjs
| ^
6 | class Doo {}
7 | class Scooby extends Doo {}
../TypeScript/tests/cases/compiler/emitBundleWithShebang2.ts: SyntaxError: Invalid character. (6:0)
4 |
5 | // @Filename: test.ts
> 6 | #!/usr/bin/env gjs
| ^
7 | class Doo {}
8 | class Scooby extends Doo {}
9 |
../TypeScript/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts: SyntaxError: Invalid character. (6:0)
4 |
5 | // @Filename: test.ts
> 6 | #!/usr/bin/env gjs
| ^
7 | "use strict"
8 | class Doo {}
9 | class Scooby extends Doo {}
../TypeScript/tests/cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts: SyntaxError: Invalid character. (6:0)
4 |
5 | // @Filename: test.ts
> 6 | #!/usr/bin/env gjs
| ^
7 | "use strict"
8 | class Doo {}
9 | class Scooby extends Doo {}
../TypeScript/tests/cases/compiler/emitDecoratorMetadata_object.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/emitDecoratorMetadata_restArgs.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/emptyMemberAccess.ts: SyntaxError: Expression expected. (3:4)
1 | function getObj() {
2 |
> 3 | ().toString();
| ^
4 |
5 | }
6 |
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
function foo(e: E) {}
-foo(a); // shouldn't error
+foo(a); shouldn't error
../TypeScript/tests/cases/compiler/enumConflictsWithGlobalIdentifier.ts: SyntaxError: Identifier expected. (4:28)
2 | IgnoreRulesSpecific = 0,
3 | }
> 4 | var x = IgnoreRulesSpecific.
| ^
5 | var y = Position.IgnoreRulesSpecific;
6 |
../TypeScript/tests/cases/compiler/enumMemberResolution.ts: SyntaxError: Identifier expected. (4:28)
2 | IgnoreRulesSpecific = 0
3 | }
> 4 | var x = IgnoreRulesSpecific. // error
| ^
5 | var y = 1;
6 | var z = Position2.IgnoreRulesSpecific; // no error
7 |
../TypeScript/tests/cases/compiler/enumWithParenthesizedInitializer1.ts: SyntaxError: ')' expected. (3:0)
1 | enum E {
2 | e = -(3
> 3 | }
| ^
../TypeScript/tests/cases/compiler/errorHandlingInInstanceOf.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/compiler/errorRecoveryInClassDeclaration.ts: SyntaxError: ',' expected. (4:19)
2 | public bar() {
3 | var v = foo(
> 4 | public blaz() {}
| ^
5 | );
6 | }
7 | }
../TypeScript/tests/cases/compiler/errorRecoveryWithDotFollowedByNamespaceKeyword.ts: SyntaxError: Identifier expected. (4:14)
2 | function foo() {
3 | if (true) {
> 4 | B.
| ^
5 |
6 |
7 | namespace B {
../TypeScript/tests/cases/compiler/errorsInGenericTypeReference.ts: SyntaxError: ',' expected. (42:23)
40 | class testClass4<T extends { x: V }> {} // error: could not find symbol V
41 |
> 42 | interface testClass5<T in Foo<{ x: V }>> {} // error: could not find symbol V
| ^
43 |
44 | class testClass6<T> {
45 | method<M extends { x: V }>(): void {} // error: could not find symbol V
../TypeScript/tests/cases/compiler/es5-asyncFunctionBinaryExpressions.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -88,5 +88,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
},
{
Index:
===================================================================
---
+++
@@ -4,13 +4,12 @@
declare module "foo" {
- export var before: C;
+ export var before: C;
- export default class C {
- method(): C;
- }
+ export class C {
+ method(): C;
+ }
- export var after: C;
+ export var after: C;
- export var t: typeof C;
+ export var t: typeof C;
}
-
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -63,5 +63,7 @@
}
}
- }
+ },
+ "specifiers": [],
+ "source": null
},
{
Index:
===================================================================
---
+++
@@ -4,8 +4,8 @@
declare module "bar" {
- var before: typeof func;
+ var before: typeof func;
- export default function func(): typeof func;
+ export function func(): typeof func
\ No newline at end of file
- var after: typeof func;
-}
+ var after: typeof func;
+}
../TypeScript/tests/cases/compiler/es6ClassTest2.ts: SyntaxError: ',' expected. (20:23)
18 |
19 | class GetSetMonster {
> 20 | constructor(public name: string, private _health: number) {
| ^
21 |
22 | }
23 |
../TypeScript/tests/cases/compiler/es6ClassTest9.ts: SyntaxError: '{' expected. (1:17)
> 1 | declare class foo();
| ^
2 | function foo() {}
3 |
../TypeScript/tests/cases/compiler/es6ImportNamedImportIdentifiersParsing.ts: SyntaxError: Identifier expected. (4:9)
2 |
3 | import { yield } from "somemodule"; // Allowed
> 4 | import { default } from "somemodule"; // Error - as this is keyword that is not allowed as identifier
| ^
5 | import { yield as default } from "somemodule"; // error to use default as binding name
6 | import { default as yield } from "somemodule"; // no error
7 | import { default as default } from "somemodule"; // default as is ok, error of default binding name
../TypeScript/tests/cases/compiler/es6ImportNamedImportParsingError.ts: SyntaxError: Identifier expected. (9:9)
7 |
8 | // @filename: es6ImportNamedImportParsingError_1.ts
> 9 | import { * } from "es6ImportNamedImportParsingError_0";
| ^
10 | import defaultBinding, from "es6ImportNamedImportParsingError_0";
11 | import , { a } from "es6ImportNamedImportParsingError_0";
12 | import { a }, from "es6ImportNamedImportParsingError_0";
../TypeScript/tests/cases/compiler/es6ImportParseErrors.ts: SyntaxError: Declaration or statement expected. (3:0)
1 | // @target: es6
2 |
> 3 | import 10;
| ^
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,5 +11,5 @@
declare function foo(...args: any[]): any
-foo
+foo;
export class D {
static s = 0;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
declare function foo(...args: any[]): any
-foo
+foo;
export default class C {
static x() {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
declare function foo(...args: any[]): any
-foo
+foo;
export default class D {
static s = 0;
../TypeScript/tests/cases/compiler/escapedIdentifiers.ts: SyntaxError: '}' expected. (63:50)
61 | }
62 |
> 63 | var interfaceType1Object1 = <interfaceType1>{ bar1: 0 };
| ^
64 | interfaceType1Object1.bar1 = 2;
65 | var interfaceType1Object2 = <interfaceType\u0031>{ bar1: 0 };
66 | interfaceType1Object2.bar1 = 2;
../TypeScript/tests/cases/compiler/exportInFunction.ts: SyntaxError: '}' expected. (3:0)
1 | function f() {
2 | export = 0;
> 3 |
| ^
../TypeScript/tests/cases/compiler/extendArray.ts: SyntaxError: Expression expected. (14:4)
12 | var arr = (<any>Array).prototype;
13 | arr.collect = function (fn) {
> 14 | var res = [];
| ^
15 | for (var i = 0; i < this.length; ++i) {
16 | var tmp = fn(this[i]);
17 | for (var j = 0; j < tmp.length; ++j) {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,4 +7,5 @@
// @Filename: extendingClassFromAliasAndUsageInIndexer_moduleA.ts
+
import Backbone = require("./extendingClassFromAliasAndUsageInIndexer_backbone");
export class VisualizationModel extends Backbone.Model {
@@ -14,4 +15,5 @@
// @Filename: extendingClassFromAliasAndUsageInIndexer_moduleB.ts
+
import Backbone = require("./extendingClassFromAliasAndUsageInIndexer_backbone");
export class VisualizationModel extends Backbone.Model {
@@ -21,4 +23,5 @@
// @Filename: extendingClassFromAliasAndUsageInIndexer_main.ts
+
import Backbone = require("./extendingClassFromAliasAndUsageInIndexer_backbone");
import moduleA = require("./extendingClassFromAliasAndUsageInIndexer_moduleA");
../TypeScript/tests/cases/compiler/extendsUntypedModule.ts: SyntaxError: ';' expected. (6:5)
4 |
5 | // @Filename: /node_modules/foo/index.js
> 6 | This file is not read.
| ^
7 |
8 | // @Filename: /node_modules/bar/index.js
9 | Nor is this one.
../TypeScript/tests/cases/compiler/extension.ts: SyntaxError: Declaration or statement expected. (16:4)
14 |
15 | declare module M {
> 16 | export extension class C {
| ^
17 | public pe:string;
18 | }
19 | }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,4 +5,5 @@
// @Filename: externalModuleReferenceOfImportDeclarationWithExportModifier_1.ts
+
export import file1 = require("externalModuleReferenceOfImportDeclarationWithExportModifier_0");
file1.foo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,4 +11,5 @@
///<reference path='externalModuleRefernceResolutionOrderInImportDeclaration_file2.ts'/>
+
import file1 = require("./externalModuleRefernceResolutionOrderInImportDeclaration_file1");
file1.foo();
../TypeScript/tests/cases/compiler/externModule.ts: SyntaxError: ';' expected. (1:8)
> 1 | declare module {
| ^
2 | export class XDate {
3 | public getDay():number;
4 | public getXDate():number;
../TypeScript/tests/cases/compiler/fatarrowfunctionsErrors.ts: SyntaxError: ',' expected. (2:7)
1 | foo((...Far:any[])=>{return 0;})
> 2 | foo((1)=>{return 0;});
| ^
3 | foo((x?)=>{return x;})
4 | foo((x=0)=>{return x;})
5 | var y = x:number => x*x;
../TypeScript/tests/cases/compiler/fatarrowfunctionsOptionalArgs.ts: SyntaxError: ';' expected. (88:22)
86 |
87 | //multiple levels
> 88 | (a?) => { return a; } ? (b)=>(c)=>81 : (c)=>(d)=>82;
| ^
89 |
90 |
91 | // In Expressions
../TypeScript/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts: SyntaxError: ';' expected. (1:22)
> 1 | var tt1 = (a, (b, c)) => a+b+c;
| ^
2 | var tt2 = ((a), b, c) => a+b+c;
3 |
4 | var tt3 = ((a)) => a;
../TypeScript/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts: SyntaxError: Identifier expected. (1:4)
> 1 | (...) => 105;
| ^
2 |
../TypeScript/tests/cases/compiler/for.ts: SyntaxError: Expression expected. (31:5)
29 | }
30 |
> 31 | for () { // error
| ^
32 | }
../TypeScript/tests/cases/compiler/functionDeclarationWithResolutionOfTypeNamedArguments01.ts: SyntaxError: JSX element 'arguments' has no corresponding closing tag. (5:5)
3 |
4 | function f() {
> 5 | <arguments>arguments;
| ^
6 | }
../TypeScript/tests/cases/compiler/functionDeclarationWithResolutionOfTypeOfSameName01.ts: SyntaxError: JSX element 'f' has no corresponding closing tag. (5:5)
3 |
4 | function f() {
> 5 | <f>f;
| ^
6 | }
../TypeScript/tests/cases/compiler/functionExpressionWithResolutionOfTypeNamedArguments01.ts: SyntaxError: JSX element 'arguments' has no corresponding closing tag. (5:5)
3 |
4 | var x = function f() {
> 5 | <arguments>arguments;
| ^
6 | }
../TypeScript/tests/cases/compiler/functionExpressionWithResolutionOfTypeOfSameName01.ts: SyntaxError: JSX element 'f' has no corresponding closing tag. (5:5)
3 |
4 | var x = function f() {
> 5 | <f>f;
| ^
6 | }
../TypeScript/tests/cases/compiler/functionsMissingReturnStatementsAndExpressions.ts: SyntaxError: Identifier expected. (131:4)
129 | throw null;
130 | throw undefined.
> 131 | }
| ^
132 | }
../TypeScript/tests/cases/compiler/functionTypesLackingReturnTypes.ts: SyntaxError: '=>' expected. (3:16)
1 |
2 | // Error (no '=>')
> 3 | function f(x: ()) {
| ^
4 | }
5 |
6 | // Error (no '=>')
../TypeScript/tests/cases/compiler/fuzzy.ts: SyntaxError: '}' expected. (17:33)
15 | }
16 | works():R {
> 17 | return <R>({ anything: 1 });
| ^
18 | }
19 |
20 | doesntWork():R {
../TypeScript/tests/cases/compiler/genericAssignmentCompatWithInterfaces1.ts: SyntaxError: Identifier expected. (17:22)
15 | } ();
16 | var a3: I<string> = z;
> 17 | var a4: I<string> = <K<number>>z;
| ^
18 |
19 |
../TypeScript/tests/cases/compiler/genericCallsWithoutParens.ts: SyntaxError: '(' expected. (2:17)
1 | function f<T>() { }
> 2 | var r = f<number>; // parse error
| ^
3 |
4 | class C<T> {
5 | foo: T;
../TypeScript/tests/cases/compiler/genericCallWithoutArgs.ts: SyntaxError: '(' expected. (4:16)
2 | }
3 |
> 4 | f<number,string>.
| ^
../TypeScript/tests/cases/compiler/genericConstraint3.ts: SyntaxError: ',' expected. (2:17)
1 | interface C<P> { x: P }
> 2 | interface A<T, U in C<T>> { x: U }
| ^
3 | interface B extends A<{}, { x: {} }> {} // Should not produce an error
4 |
../TypeScript/tests/cases/compiler/genericConstraintSatisfaction1.ts: SyntaxError: ',' expected. (2:8)
1 | interface I<S> {
> 2 | f: <T in S>(x: T) => void
| ^
3 | }
4 |
5 | var x: I<{ s: string }>;
../TypeScript/tests/cases/compiler/genericConstructExpressionWithoutArgs.ts: SyntaxError: '(' expected. (10:0)
8 | var c = new C // C<any>
9 | var c2 = new C<number> // error, type params are actually part of the arg list so you need both
> 10 |
| ^
../TypeScript/tests/cases/compiler/genericDefaults.ts: SyntaxError: Identifier expected. (399:20)
397 | interface i00<T = number> { a: T; }
398 | const i00c00 = (<i00>x).a;
> 399 | const i00c01 = (<i00<number>>x).a;
| ^
400 |
401 | interface i01<T, U = T> { a: [T, U]; }
402 | const i01c00 = (<i01<number>>x).a;
../TypeScript/tests/cases/compiler/genericDefaultsErrors.ts: SyntaxError: ',' expected. (28:16)
26 |
27 | interface i04<T, U> {} // error
> 28 | interface i05<T in string> {} // error
| ^
29 | interface i06<T in string, U in number> {} // error
30 | interface i07<T, U in number> {} // error
31 | interface i08<T, U in T> {} // error
../TypeScript/tests/cases/compiler/genericImplements.ts: SyntaxError: ',' expected. (8:6)
6 | }
7 | interface I {
> 8 | f<T in A>(): T
| ^
9 | } // { f: () => { a; } }
10 |
11 | // OK
../TypeScript/tests/cases/compiler/genericInstanceOf.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (4:13)
2 | module foo {
3 | export var x: T;
> 4 | var y = <T>1;
| ^
5 | }
6 |
../TypeScript/tests/cases/compiler/genericMergedDeclarationUsingTypeParameter2.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (4:13)
2 | module foo {
3 | export var x: T;
> 4 | var y = <T>1;
| ^
5 | }
6 |
../TypeScript/tests/cases/compiler/genericObjectCreationWithoutTypeArgs.ts: SyntaxError: '(' expected. (6:25)
4 |
5 | var x1 = new SS<number>(); // OK
> 6 | var x2 = new SS < number>; // Correctly give error
| ^
7 | var x3 = new SS(); // OK
8 | var x4 = new SS; // Should be allowed, but currently give error ('supplied parameters do not match any signature of the call target')
9 |
../TypeScript/tests/cases/compiler/genericParameterAssignability1.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (2:9)
1 | function f<T>(x: T): T { return null; }
> 2 | var r = <T>(x: T) => x;
| ^
3 | r = f; // should be allowed
../TypeScript/tests/cases/compiler/generics1.ts: SyntaxError: ',' expected. (4:17)
2 | interface B extends A { b: string }
3 | interface C extends B { c: string }
> 4 | interface G<T, U in B> {
| ^
5 | x: T,
6 | y: U
7 | }
../TypeScript/tests/cases/compiler/generics1NoError.ts: SyntaxError: ',' expected. (5:17)
3 | interface B extends A { b: string }
4 | interface C extends B { c: string }
> 5 | interface G<T, U in B> {
| ^
6 | x: T,
7 | y: U
8 | }
../TypeScript/tests/cases/compiler/generics2.ts: SyntaxError: ',' expected. (4:17)
2 | interface B extends A { b: string }
3 | interface C extends B { c: string }
> 4 | interface G<T, U in B> {
| ^
5 | x: T,
6 | y: U
7 | }
../TypeScript/tests/cases/compiler/generics2NoError.ts: SyntaxError: ',' expected. (5:17)
3 | interface B extends A { b: string }
4 | interface C extends B { c: string }
> 5 | interface G<T, U in B> {
| ^
6 | x: T,
7 | y: U
8 | }
../TypeScript/tests/cases/compiler/generics5.ts: SyntaxError: ',' expected. (5:17)
3 |
4 | interface C extends B { c: string }
> 5 | interface G<T, U in B> {}
| ^
6 |
7 | var v3: G<A, A>; // Error, A not valid argument for U
8 |
../TypeScript/tests/cases/compiler/genericsAndHigherOrderFunctions.ts: SyntaxError: Identifier expected. (11:11)
9 | (x: U) => f(g(x))
10 |
> 11 | var foo: <K, N>(g: (x: K) => N) =>
| ^
12 | (h: <M>(_: (_: K) => (_: M) => M) => (_: M) => M) =>
13 | <R>(f: (_: N) => (_: R) => R) => (_: R) => R
14 |
../TypeScript/tests/cases/compiler/genericSignatureIdentity.ts: SyntaxError: ',' expected. (7:5)
5 |
6 | var x: {
> 7 | <T in Date>(x: T): T
| ^
8 | };
9 |
10 | var x: {
../TypeScript/tests/cases/compiler/genericTypeArgumentInference1.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (15:17)
13 | var r2 = _.all([true], _.identity);
14 | var r3 = _.all([], _.identity);
> 15 | var r4 = _.all([<any>true], _.identity);
| ^
16 |
../TypeScript/tests/cases/compiler/genericTypeAssertions1.ts: SyntaxError: Identifier expected. (3:21)
1 | class A<T> { foo(x: T) { }}
2 | var foo = new A<number>();
> 3 | var r: A<string> = <A<number>>new A(); // error
| ^
4 | var r2: A<number> = <A<A<number>>>foo; // error
../TypeScript/tests/cases/compiler/genericTypeAssertions2.ts: SyntaxError: Identifier expected. (9:21)
7 |
8 | var foo = new A<number>();
> 9 | var r: A<string> = <B<string>>new B();
| ^
10 | var r2: A<number> = <B<string>>new B(); // error
11 | var r3: B<number> = <A<number>>new B(); // error
12 | var r4: A<number> = <A<number>>new A();
../TypeScript/tests/cases/compiler/genericTypeAssertions3.ts: SyntaxError: Expression expected. (1:8)
> 1 | var r = < <T>(x: T) => T > ((x) => { return null; }); // bug was 'could not find dotted symbol T' on x's annotation in the type assertion instead of no error
| ^
2 | var s = < <T>(x: T) => T > ((x: any) => { return null; }); // no error
3 |
../TypeScript/tests/cases/compiler/genericTypeAssertions4.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (24:9)
22 | y = <T>a;
23 | y = <T>b; // error: cannot convert B to T
> 24 | y = <T>c; // error: cannot convert C to T
| ^
25 | }
../TypeScript/tests/cases/compiler/genericTypeAssertions5.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (24:9)
22 | y = <T>a;
23 | y = <T>b; // error: cannot convert B to T
> 24 | y = <T>c; // error: cannot convert C to T
| ^
25 | }
../TypeScript/tests/cases/compiler/genericTypeAssertions6.ts: SyntaxError: Identifier expected. (13:22)
11 | }
12 |
> 13 | class B<T extends Date, U extends Date> extends A<T, U> {
| ^
14 | g(x: T) {
15 | var a: Date = x;
16 | var b = <Date>x;
../TypeScript/tests/cases/compiler/genericWithCallSignatures1.ts: SyntaxError: JSX element 'string' has no corresponding closing tag. (15:17)
13 |
14 | public myMethod() {
> 15 | var x = <string> this.callableThing();
| ^
16 | }
17 | }
../TypeScript/tests/cases/compiler/genericWithIndexerOfTypeParameterType1.ts: SyntaxError: Expression expected. (2:22)
1 | class LazyArray<T> {
> 2 | private objects = <{ [objectId: string]: T; }>{};
| ^
3 | array() {
4 | return this.objects;
5 | }
../TypeScript/tests/cases/compiler/genericWithOpenTypeParameters1.ts: SyntaxError: Expression expected. (7:26)
5 | var x: B<number>;
6 | x.foo(1); // no error
> 7 | var f = <T>(x: B<T>) => { return x.foo(1); } // error
| ^
8 | var f2 = <T>(x: B<T>) => { return x.foo<T>(1); } // error
9 | var f3 = <T>(x: B<T>) => { return x.foo<number>(1); } // error
10 | var f4 = (x: B<number>) => { return x.foo(1); } // no error
../TypeScript/tests/cases/compiler/getterSetterNonAccessor.ts: SyntaxError: '}' expected. (5:13)
3 |
4 | Object.defineProperty({}, "0", <PropertyDescriptor>({
> 5 | get: getFunc,
| ^
6 | set: setFunc,
7 | configurable: true
8 | }));
../TypeScript/tests/cases/compiler/giant.ts: SyntaxError: Type expected. (64:16)
62 | //Index Signature
63 | p,
> 64 | [p1: string]: ,
| ^
65 | [p2: string, p3: number]: ,
66 |
67 | //Property Signature
../TypeScript/tests/cases/compiler/implicitAnyAnyReturningFunction.ts: SyntaxError: Expression expected. (7:4)
5 |
6 | function B() {
> 7 | var someLocal: any = {};
| ^
8 | return someLocal;
9 | }
10 |
../TypeScript/tests/cases/compiler/implicitAnyCastedValue.ts: SyntaxError: Expression expected. (7:4)
5 |
6 | function foo() {
> 7 | return <any>"hello world"; // this should not be an error
| ^
8 | }
9 |
10 | class C {
../TypeScript/tests/cases/compiler/implicitAnyFunctionInvocationWithAnyArguements.ts: SyntaxError: ',' expected. (29:26)
27 |
28 | class C {
> 29 | constructor(emtpyArray: any, variable: any) {
| ^
30 | }
31 | }
32 |
../TypeScript/tests/cases/compiler/implicitAnyGenerics.ts: SyntaxError: Expression expected. (22:23)
20 | var d5: D<any> = new D(null);
21 |
> 22 | function foo<T>(): T { return null; };
| ^
23 | foo()
24 | foo<any>();
25 |
../TypeScript/tests/cases/compiler/implicitAnyWidenToAny.ts: SyntaxError: Identifier expected. (22:17)
20 | var array3: any[] = [null, undefined];
21 | var array4: number[] = [null, undefined];
> 22 | var array5 = <any[]>[null, undefined];
| ^
23 |
24 | var objLit: { new (n: number): any; };
25 | function anyReturnFunc(): any { }
../TypeScript/tests/cases/compiler/importHelpers.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
// @filename: a.ts
declare var dec: any;
-dec
+dec;
export class A {}
../TypeScript/tests/cases/compiler/importHelpersInIsolatedModules.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
../TypeScript/tests/cases/compiler/importHelpersNoHelpers.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
../TypeScript/tests/cases/compiler/importHelpersNoModule.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
../TypeScript/tests/cases/compiler/incompleteDottedExpressionAtEOF.ts: SyntaxError: Identifier expected. (2:17)
1 | // used to leak __missing into error message
> 2 | var p2 = window.
| ^
../TypeScript/tests/cases/compiler/incompleteObjectLiteral1.ts: SyntaxError: ':' expected. (1:13)
> 1 | var tt = { aa; }
| ^
2 | var x = tt;
../TypeScript/tests/cases/compiler/indexedAccessTypeConstraints.ts: SyntaxError: ',' expected. (10:10)
8 |
9 | type Data<T> = {
> 10 | get: <K in keyof T>(prop: K) => T[K]
| ^
11 | };
12 |
13 | class Parent<M> {
../TypeScript/tests/cases/compiler/indexer2.ts: SyntaxError: JSX element 'IDirectChildrenMap' has no corresponding closing tag. (6:25)
4 | [objectId: number] : IHeapObjectProperty[];
5 | }
> 6 | var directChildrenMap = <IDirectChildrenMap>{};
| ^
../TypeScript/tests/cases/compiler/indexer2A.ts: SyntaxError: JSX element 'IDirectChildrenMap' has no corresponding closing tag. (7:25)
5 | [objectId: number]: IHeapObjectProperty[]
6 | }
> 7 | var directChildrenMap = <IDirectChildrenMap>{};
| ^
../TypeScript/tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts: SyntaxError: Type expected. (5:0)
3 | x: string,
4 | [x: string]:
> 5 | }
| ^
6 |
7 | class C {
8 | // Used to be indexer, now it is a computed property
../TypeScript/tests/cases/compiler/indexSignatureTypeCheck.ts: SyntaxError: Type expected. (10:17)
8 |
9 | interface indexErrors {
> 10 | [p2?: string]: ,
| ^
11 | [...p3: any[]]: ,
12 | [p4: string, p5?: string]: ,
13 | [p6: string, ...p7: any[]]:
../TypeScript/tests/cases/compiler/indexSignatureTypeCheck2.ts: SyntaxError: Type expected. (10:17)
8 |
9 | interface indexErrors {
> 10 | [p2?: string]: ,
| ^
11 | [...p3: any[]]: ,
12 | [p4: string, p5?: string]: ,
13 | [p6: string, ...p7: any[]]:
../TypeScript/tests/cases/compiler/indexSignatureWithoutTypeAnnotation1.ts: SyntaxError: Type expected. (3:0)
1 | class C {
2 | [a: number]:
> 3 | }
| ^
4 |
../TypeScript/tests/cases/compiler/indexTypeCheck.ts: SyntaxError: '}' expected. (58:11)
56 | class Benchmark {
57 |
> 58 | public results: { [x:string]: any; } = <{ [x:string]: any; }>{};
| ^
59 |
60 | public addTimingFor(name: string, timing: number) {
61 | this.results[name] = this.results[name];
../TypeScript/tests/cases/compiler/indexWithoutParamType.ts: SyntaxError: Type expected. (1:14)
> 1 | var y: { []: }; // Error
| ^
2 |
../TypeScript/tests/cases/compiler/inferentialTypingWithFunctionTypeSyntacticScenarios.ts: SyntaxError: JSX element 'typeof' has no corresponding closing tag. (29:13)
27 |
28 | // type assertion
> 29 | s = map("", <typeof identity>identity);
| ^
30 |
31 | // parenthesized expression
32 | s = map("", (identity));
../TypeScript/tests/cases/compiler/innerModExport1.ts: SyntaxError: ';' expected. (5:11)
3 | // inner mod 1
4 | var non_export_var: number;
> 5 | module {
| ^
6 | var non_export_var = 0;
7 | export var export_var = 1;
8 |
../TypeScript/tests/cases/compiler/innerModExport2.ts: SyntaxError: ';' expected. (5:11)
3 | // inner mod 1
4 | var non_export_var: number;
> 5 | module {
| ^
6 | var non_export_var = 0;
7 | export var export_var = 1;
8 |
../TypeScript/tests/cases/compiler/instanceOfAssignability.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/compiler/instanceOfInExternalModules.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/compiler/instanceofOperator.ts: SyntaxError: Invalid character. (1:0)
> 1 | ��// Spec:
| ^
2 |
3 | // The instanceof operator requires the left operand to be of type Any or an object type, and the right
4 |
../TypeScript/tests/cases/compiler/instanceofWithStructurallyIdenticalTypes.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/compiler/instantiateConstraintsToTypeArguments2.ts: SyntaxError: ',' expected. (1:14)
> 1 | interface A<T in A<T, S>, S in A<T, S>> {}
| ^
2 | interface B<T in B<T, S>, S in B<T, S>> extends A<B<T, S>, B<T, S>> {}
3 |
../TypeScript/tests/cases/compiler/instantiatedBaseTypeConstraints.ts: SyntaxError: ',' expected. (1:16)
> 1 | interface Foo<T in Foo<T, C>, C> {
| ^
2 | foo(bar: C): void
3 | }
4 |
../TypeScript/tests/cases/compiler/instantiatedBaseTypeConstraints2.ts: SyntaxError: ',' expected. (1:14)
> 1 | interface A<T in A<T, S>, S in A<T, S>> {}
| ^
2 | interface B<U> extends A<B<U>, B<U>> {}
3 |
../TypeScript/tests/cases/compiler/instantiateTypeParameter.ts: SyntaxError: Property or signature expected. (2:4)
1 | interface Foo<T> {
> 2 | var x: T<>;
| ^
3 | }
../TypeScript/tests/cases/compiler/interfaceDeclaration4.ts: SyntaxError: '{' expected. (39:13)
37 |
38 | // Negative case
> 39 | interface Foo.I1 { }
| ^
40 |
../TypeScript/tests/cases/compiler/interfaceNaming1.ts: SyntaxError: ';' expected. (1:10)
> 1 | interface { }
| ^
2 | interface interface{ }
3 | interface & { }
4 |
../TypeScript/tests/cases/compiler/interfaceWithMultipleDeclarations.ts: SyntaxError: ',' expected. (7:4)
5 | interface I1<
6 | T,
> 7 | U in T // Length mismatch
| ^
8 | > {}
9 | interface I1<
10 | V in string // constraint present
../TypeScript/tests/cases/compiler/intersectionTypeInference1.ts: SyntaxError: '}' expected. (6:50)
4 |
5 | const parameterFn = (props:{store:string}) => alert(props.store)
> 6 | const brokenFunction = <OwnProps>(f: (p: {dispatch: number} & OwnProps) => void) => (o: OwnProps) => o
| ^
7 | export const Form3 = brokenFunction(parameterFn)({store: "hello"})
8 |
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -13,4 +13,4 @@
m1.__proto__ = 0;
-class Foo<___proto__> {}
+class Foo<____proto__> {}
var foo: (__proto__: number) => void;
../TypeScript/tests/cases/compiler/intTypeCheck.ts: SyntaxError: Expression expected. (117:34)
115 | var obj15: i2 = new Base;
116 | var obj16: i2 = null;
> 117 | var obj17: i2 = function ():any { return 0; };
| ^
118 | //var obj18: i2 = function foo() { };
119 | var obj19: i2 = <i2> anyVar;
120 | var obj20: i2 = new <i2> anyVar;
../TypeScript/tests/cases/compiler/invalidLetInForOfAndForIn_ES5.ts: SyntaxError: '=' expected. (6:12)
4 |
5 | var let = 10;
> 6 | for (let of [1,2,3]) {}
| ^
7 |
8 | for (let in [1,2,3]) {}
9 |
../TypeScript/tests/cases/compiler/invalidLetInForOfAndForIn_ES6.ts: SyntaxError: '=' expected. (6:12)
4 |
5 | var let = 10;
> 6 | for (let of [1,2,3]) {}
| ^
7 |
8 | for (let in [1,2,3]) {}
9 |
../TypeScript/tests/cases/compiler/invalidReferenceSyntax1.ts: SyntaxError: Invalid 'reference' directive syntax. (1:0)
> 1 | /// <reference path="missingquote.ts />
| ^
2 | class C {
3 |
4 | }
../TypeScript/tests/cases/compiler/invalidUnicodeEscapeSequance.ts: SyntaxError: Invalid character. (1:7)
> 1 | var arg\u003
| ^
../TypeScript/tests/cases/compiler/invalidUnicodeEscapeSequance2.ts: SyntaxError: Invalid character. (1:7)
> 1 | var arg\uxxxx
| ^
../TypeScript/tests/cases/compiler/invalidUnicodeEscapeSequance3.ts: SyntaxError: Invalid character. (1:1)
> 1 | a\u
| ^
../TypeScript/tests/cases/compiler/invalidUnicodeEscapeSequance4.ts: SyntaxError: Invalid character. (2:4)
1 | var a\u0031; // a1 is a valid identifier
> 2 | var \u0031a; // 1a is an invalid identifier
| ^
../TypeScript/tests/cases/compiler/jsFileCompilationBindMultipleDefaultExports.ts: SyntaxError: Expression expected. (7:15)
5 | export default class a {
6 | }
> 7 | export default var a = 10;
| ^
../TypeScript/tests/cases/compiler/jsFileCompilationBindStrictModeErrors.ts: SyntaxError: ',' expected. (40:10)
38 | //@filename: d.js
39 | "use strict";
> 40 | var x = 009; // error
| ^
../TypeScript/tests/cases/compiler/jsFileCompilationDecoratorSyntax.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/compiler/jsFileCompilationTypeAssertions.ts: SyntaxError: JSX element 'string' has no corresponding closing tag. (3:9)
1 | // @allowJs: true
2 | // @filename: a.js
> 3 | var v = <string>undefined;
| ^
../TypeScript/tests/cases/compiler/literals-negative.ts: SyntaxError: JSX element 'boolean' has no corresponding closing tag. (5:9)
3 | var n = <number>(null);
4 | var s = <string>(null);
> 5 | var b = <boolean>(n);
| ^
6 |
7 | function isVoid() : void { }
8 |
../TypeScript/tests/cases/compiler/m7Bugs.ts: SyntaxError: '}' expected. (10:15)
8 |
9 | // scenario 2
> 10 | interface A { x: string; }
| ^
11 |
12 | interface B extends A { }
13 |
../TypeScript/tests/cases/compiler/maxConstraints.ts: SyntaxError: ',' expected. (5:5)
3 | }
4 | interface Comparer {
> 5 | <T in Comparable<T>>(x: T, y: T): T
| ^
6 | }
7 | var max2: Comparer = (x, y) => {
8 | return x.compareTo(y) > 0 ? x : y;
../TypeScript/tests/cases/compiler/maxNodeModuleJsDepthDefaultsToZero.ts: SyntaxError: ';' expected. (9:19)
7 | // @filename: /tsconfig.json
8 | {
> 9 | "compileOnSave": true,
| ^
10 | "compilerOptions": {
11 | "module": "commonjs",
12 | "moduleResolution": "node",
../TypeScript/tests/cases/compiler/metadataOfClassFromModule.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/metadataOfEventAlias.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/metadataOfStringLiteral.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/metadataOfUnion.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/metadataOfUnionWithNull.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/compiler/methodContainingLocalFunction.ts: SyntaxError: '=>' expected. (31:25)
29 | exhibit() {
30 | var funcExpr = <U>(u?: U) => { };
> 31 | var x: { (): void; };
| ^
32 | x = funcExpr;
33 | }
34 | }
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -18,11 +18,6 @@
"params": [
{
- "type": "TSParameterProperty",
- "accessibility": null,
- "isReadonly": false,
- "parameter": {
- "type": "Identifier",
- "name": "p"
- },
+ "type": "Identifier",
+ "name": "p",
"decorators": []
}
Index:
===================================================================
---
+++
@@ -1,3 +1,3 @@
class C {
- constructor(declare p) { }
-}
\ No newline at end of file
+ constructor(p) {}
+}
../TypeScript/tests/cases/compiler/moduleAugmentationCollidingNamesInAugmentation1.ts: SyntaxError: '}' expected. (10:14)
8 |
9 | declare module "./observable" {
> 10 | interface I {x0}
| ^
11 | }
12 |
13 | // @filename: map2.ts
../TypeScript/tests/cases/compiler/moduleAugmentationDeclarationEmit1.ts: SyntaxError: '}' expected. (10:14)
8 |
9 | declare module "./observable" {
> 10 | interface Observable<T> {
| ^
11 | map<U>(proj: (e:T) => U): Observable<U>
12 | }
13 | namespace Observable {
../TypeScript/tests/cases/compiler/moduleAugmentationDeclarationEmit2.ts: SyntaxError: '}' expected. (10:14)
8 |
9 | declare module "./observable" {
> 10 | interface Observable<T> {
| ^
11 | map<U>(proj: (e:T) => U): Observable<U>
12 | }
13 | namespace Observable {
../TypeScript/tests/cases/compiler/moduleAugmentationExtendAmbientModule1.ts: SyntaxError: '}' expected. (9:14)
7 |
8 | declare module "observable" {
> 9 | interface Observable<T> {
| ^
10 | map<U>(proj: (e:T) => U): Observable<U>
11 | }
12 | namespace Observable {
../TypeScript/tests/cases/compiler/moduleAugmentationExtendAmbientModule2.ts: SyntaxError: '}' expected. (10:14)
8 |
9 | declare module "observable" {
> 10 | interface Observable<T> {
| ^
11 | map<U>(proj: (e:T) => U): Observable<U>
12 | }
13 | namespace Observable {
../TypeScript/tests/cases/compiler/moduleAugmentationExtendFileModule1.ts: SyntaxError: '}' expected. (9:14)
7 |
8 | declare module "./observable" {
> 9 | interface Observable<T> {
| ^
10 | map<U>(proj: (e:T) => U): Observable<U>
11 | }
12 | namespace Observable {
../TypeScript/tests/cases/compiler/moduleAugmentationExtendFileModule2.ts: SyntaxError: '}' expected. (9:14)
7 |
8 | declare module "./observable" {
> 9 | interface Observable<T> {
| ^
10 | map<U>(proj: (e:T) => U): Observable<U>
11 | }
12 | namespace Observable {
../TypeScript/tests/cases/compiler/moduleAugmentationNoNewNames.ts: SyntaxError: '}' expected. (9:14)
7 |
8 | declare module "./observable" {
> 9 | interface Observable<T> {
| ^
10 | map<U>(proj: (e:T) => U): Observable<U>
11 | }
12 | class Bar {}
../TypeScript/tests/cases/compiler/moduleAugmentationsBundledOutput1.ts: SyntaxError: Expression expected. (12:40)
10 | // @filename: m2.ts
11 | import {Cls} from "./m1";
> 12 | (<any>Cls.prototype).foo = function() { return 1; };
| ^
13 | (<any>Cls.prototype).bar = function() { return "1"; };
14 |
15 | declare module "./m1" {
../TypeScript/tests/cases/compiler/moduleKeywordRepeatError.ts: SyntaxError: ';' expected. (3:14)
1 | // "module.module { }" should raise a syntax error
2 |
> 3 | module.module { }
| ^
../TypeScript/tests/cases/compiler/moduleProperty1.ts: SyntaxError: Declaration or statement expected. (9:4)
7 | module M2 {
8 | var x = 10; // variable local to this module body
> 9 | private y = x; // can't use private in modules
| ^
10 | export var z = y; // property visible to any code
11 | }
../TypeScript/tests/cases/compiler/moduleResolutionWithExtensions_unexpected.ts: SyntaxError: ';' expected. (6:5)
4 |
5 | // @Filename: /node_modules/normalize.css/normalize.css
> 6 | This file is not read.
| ^
7 |
8 | // @Filename: /node_modules/normalize.css/package.json
9 | { "main": "normalize.css" }
../TypeScript/tests/cases/compiler/moduleResolutionWithExtensions_unexpected2.ts: SyntaxError: ';' expected. (6:5)
4 |
5 | // @Filename: /node_modules/foo/foo.js
> 6 | This file is not read.
| ^
7 |
8 | // @Filename: /node_modules/foo/package.json
9 | { "types": "foo.js" }
../TypeScript/tests/cases/compiler/moduleResolutionWithSymlinks_notInNodeModules.ts: SyntaxError: ';' expected. (19:21)
17 | // @filename: /src/tsconfig.json
18 | {
> 19 | "compilerOptions": {
| ^
20 | "outDir": "bin"
21 | }
22 | }
../TypeScript/tests/cases/compiler/moduleResolutionWithSymlinks_referenceTypes.ts: SyntaxError: ';' expected. (23:21)
21 | // @filename: tsconfig.json
22 | {
> 23 | "compilerOptions": {
| ^
24 | // If this is its default of node_modules/@types,
25 | // node_modules/@types/library-a will be looked up be fore node_modules/@types/library-b/node_modules/@types/library-a
26 | "typeRoots": []
../TypeScript/tests/cases/compiler/moduleVisibilityTest1.ts: SyntaxError: JSX element 'M.I' has no corresponding closing tag. (60:20)
58 | }
59 |
> 60 | var cprime : M.I = <M.I>null;
| ^
61 |
62 | var c = new M.C();
63 | var z = M.x;
../TypeScript/tests/cases/compiler/moduleVisibilityTest2.ts: SyntaxError: JSX element 'M.I' has no corresponding closing tag. (61:20)
59 | }
60 |
> 61 | var cprime : M.I = <M.I>null;
| ^
62 |
63 | var c = new M.C();
64 | var z = M.x;
../TypeScript/tests/cases/compiler/narrowedConstInMethod.ts: SyntaxError: Expression expected. (7:8)
5 | const x: string | null = <any>{};
6 | if (x !== null) {
> 7 | return {
| ^
8 | bar() { return x.length; } // ok
9 | };
10 | }
../TypeScript/tests/cases/compiler/narrowingOfDottedNames.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/compiler/narrowTypeByInstanceof.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/compiler/newExpressionWithCast.ts: SyntaxError: Expression expected. (9:16)
7 | function Test2() { }
8 | // parse error
> 9 | var test2 = new <any>Test2();
| ^
10 |
11 | function Test3() { }
12 | // valid with noImplicitAny
../TypeScript/tests/cases/compiler/newExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts: SyntaxError: ',' expected. (2:9)
1 | interface I<T> {
> 2 | new <U in T>(u: U): U
| ^
3 | }
4 | var i: I<string>;
5 | var y = new i(""); // y should be string
../TypeScript/tests/cases/compiler/newMissingIdentifier.ts: SyntaxError: Expression expected. (1:13)
> 1 | var x = new ();
| ^
2 |
../TypeScript/tests/cases/compiler/noEmitHelpers2.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
../TypeScript/tests/cases/compiler/noImplicitAnyDestructuringVarDeclaration2.ts: SyntaxError: '}' expected. (8:6)
6 | let [a4] = [<any>undefined], [b4] = [<any>null], c4 = <any>undefined, d4 = <any>null; // no error
7 |
> 8 | let {x, y, z} = { x: 1, y: 2, z: 3 }; // no error
| ^
9 | let {x1 = 10, y1 = 10, z1 = 10} = { x1: 1, y1: 2, z1: 3 }; // no error
10 | let {x2 = undefined, y2 = undefined, z2 = undefined} = { x2: 1, y2: 2, z2: 3 }; // no error
11 | let {x3 = <any>undefined, y3 = <any>null, z3 = <any>undefined} = { x3: 1, y3: 2, z3: 3 }; // no error
../TypeScript/tests/cases/compiler/noImplicitAnyInCastExpression.ts: SyntaxError: '}' expected. (11:10)
9 |
10 | // Expr type not assignable to target type
> 11 | (<IFoo>{ a: null });
| ^
12 |
13 | // Expr type assignable to target type
14 | (<IFoo>{ a: 2, b: undefined });
../TypeScript/tests/cases/compiler/noImplicitAnyIndexing.ts: SyntaxError: ',' expected. (36:8)
34 |
35 | interface MyMap<T> {
> 36 | [key: string]: T;
| ^
37 | }
38 |
39 | var m: MyMap<number> = {
../TypeScript/tests/cases/compiler/noImplicitAnyIndexingSuppressed.ts: SyntaxError: ',' expected. (36:8)
34 |
35 | interface MyMap<T> {
> 36 | [key: string]: T;
| ^
37 | }
38 |
39 | var m: MyMap<number> = {
../TypeScript/tests/cases/compiler/nonIdenticalTypeConstraints.ts: SyntaxError: ',' expected. (10:16)
8 | n: T;
9 | }
> 10 | interface Foo<T in Different> {
| ^
11 | y: T
12 | }
13 | interface Qux<T in Different> {
../TypeScript/tests/cases/compiler/numericLiteralsWithTrailingDecimalPoints01.ts: SyntaxError: ';' expected. (3:2)
1 | 1..toString();
2 | 1.0.toString();
> 3 | 1.toString();
| ^
4 | 1.+2.0 + 3. ;
5 |
6 | // Preserve whitespace where important for JS compatibility
../TypeScript/tests/cases/compiler/objectCreate.ts: SyntaxError: '}' expected. (12:25)
10 |
11 | var a = Object.create(null, {}); // any
> 12 | var a = Object.create({ a: 1, b: "" }, {});
| ^
13 | var a = Object.create(union, {});
14 | var a = Object.create({}, {});
15 | var a = Object.create(<object>{}, {});
../TypeScript/tests/cases/compiler/objectCreate2.ts: SyntaxError: '}' expected. (12:25)
10 |
11 | var a = Object.create(null, {}); // any
> 12 | var a = Object.create({ a: 1, b: "" }, {});
| ^
13 | var a = Object.create(union, {});
14 | var a = Object.create({}, {});
15 | var a = Object.create(<object>{}, {});
../TypeScript/tests/cases/compiler/objectCreationExpressionInFunctionParameter.ts: SyntaxError: Declaration or statement expected. (6:1)
4 | }
5 | function foo(x = new A(123)) { //should error, 123 is not string
> 6 | }}
| ^
../TypeScript/tests/cases/compiler/objectLitArrayDeclNoNew.ts: SyntaxError: Declaration or statement expected. (27:0)
25 | }
26 | }
> 27 | }
| ^
../TypeScript/tests/cases/compiler/objectLiteralWithSemicolons1.ts: SyntaxError: ':' expected. (1:11)
> 1 | var v = { a; b; c }
| ^
../TypeScript/tests/cases/compiler/objectLiteralWithSemicolons2.ts: SyntaxError: ':' expected. (2:3)
1 | var v = {
> 2 | a;
| ^
3 | b;
4 | c
5 | }
../TypeScript/tests/cases/compiler/objectLiteralWithSemicolons3.ts: SyntaxError: ':' expected. (2:3)
1 | var v = {
> 2 | a;
| ^
3 | b;
4 | c;
5 | }
../TypeScript/tests/cases/compiler/objectLiteralWithSemicolons4.ts: SyntaxError: ':' expected. (3:0)
1 | var v = {
2 | a
> 3 | ;
| ^
../TypeScript/tests/cases/compiler/objectLiteralWithSemicolons5.ts: SyntaxError: ',' expected. (1:19)
> 1 | var v = { foo() { }; a: b; get baz() { }; }
| ^
../TypeScript/tests/cases/compiler/objectLitGetterSetter.ts: SyntaxError: '}' expected. (3:19)
1 | var obj = {};
2 | Object.defineProperty(obj, "accProperty", <PropertyDescriptor>({
> 3 | get: function () {
| ^
4 | eval("public = 1;");
5 | return 11;
6 | },
../TypeScript/tests/cases/compiler/optionalPropertiesSyntax.ts: SyntaxError: ';' expected. (11:6)
9 | //Call signatures can't be optional
10 | (): any;
> 11 | ()?: any; //err
| ^
12 | ?(): any; //err
13 | }
14 |
../TypeScript/tests/cases/compiler/overloadConsecutiveness.ts: SyntaxError: '{' or ';' expected. (3:13)
1 | // Making sure compiler won't break with declarations that are consecutive in the AST but not consecutive in the source. Syntax errors intentional.
2 |
> 3 | function f1(), function f1();
| ^
4 | function f2(), function f2() {}
5 | function f3() {}, function f3();
6 |
../TypeScript/tests/cases/compiler/overloadingStaticFunctionsInFunctions.ts: SyntaxError: '(' expected. (1:13)
> 1 | function boo {
| ^
2 | static test()
3 | static test(name:string)
4 | static test(name?:any){ }
../TypeScript/tests/cases/compiler/overloadResolutionOverNonCTObjectLit.ts: SyntaxError: '}' expected. (19:65)
17 | var tokens:IToken[]= [];
18 | tokens.push({ startIndex: 1, type: '', bracket: 3 });
> 19 | tokens.push(<IToken>({ startIndex: 1, type: '', bracket: 3, state: null, length: 10 }));
| ^
20 | }
21 | }
../TypeScript/tests/cases/compiler/parse1.ts: SyntaxError: Identifier expected. (4:0)
2 | function foo() {
3 | bar.
> 4 | }
| ^
5 |
../TypeScript/tests/cases/compiler/parse2.ts: SyntaxError: Argument expression expected. (3:0)
1 | function foo() {
2 | foo(
> 3 | }
| ^
../TypeScript/tests/cases/compiler/parseErrorInHeritageClause1.ts: SyntaxError: Invalid character. (1:18)
> 1 | class C extends A # {
| ^
2 | }
../TypeScript/tests/cases/compiler/parseTypes.ts: SyntaxError: Expression expected. (2:8)
1 |
> 2 | var x = <() => number>null;
| ^
3 | var y = <{(): number; }>null;
4 | var z = <{new(): number; }>null
5 | var w = <{[x:number]: number; }>null
../TypeScript/tests/cases/compiler/partiallyDiscriminantedUnions.ts: SyntaxError: Expression expected. (23:4)
21 |
22 | if (ab.type === 'a') {
> 23 | if (ab.subtype === 2) {
| ^
24 | ab.foo;
25 | }
26 | }
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution1_classic.ts: SyntaxError: ';' expected. (8:21)
6 | // @filename: c:/root/tsconfig.json
7 | {
> 8 | "compilerOptions": {
| ^
9 | "paths": {
10 | "*": [
11 | "*",
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution1_node.ts: SyntaxError: ';' expected. (7:21)
5 | // @filename: c:/root/tsconfig.json
6 | {
> 7 | "compilerOptions": {
| ^
8 | "paths": {
9 | "*": [
10 | "*",
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution2_classic.ts: SyntaxError: ';' expected. (9:21)
7 | // @filename: root/tsconfig.json
8 | {
> 9 | "compilerOptions": {
| ^
10 | "baseUrl": "./src",
11 | "paths": {
12 | "*1*": [ "*2*" ]
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution2_node.ts: SyntaxError: ';' expected. (9:21)
7 | // @filename: root/tsconfig.json
8 | {
> 9 | "compilerOptions": {
| ^
10 | "baseUrl": "./src",
11 | "paths": {
12 | "*1*": [ "*2*" ]
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution4_classic.ts: SyntaxError: ';' expected. (9:21)
7 | // @filename: c:/root/tsconfig.json
8 | {
> 9 | "compilerOptions": {
| ^
10 | "baseUrl": "."
11 | }
12 | }
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution4_node.ts: SyntaxError: ';' expected. (9:21)
7 | // @filename: c:/root/tsconfig.json
8 | {
> 9 | "compilerOptions": {
| ^
10 | "baseUrl": "."
11 | }
12 | }
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution5_classic.ts: SyntaxError: ';' expected. (7:21)
5 | // @filename: c:/root/tsconfig.json
6 | {
> 7 | "compilerOptions": {
| ^
8 | "baseUrl": ".",
9 | "paths": {
10 | "*": [
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution5_node.ts: SyntaxError: ';' expected. (7:21)
5 | // @filename: c:/root/tsconfig.json
6 | {
> 7 | "compilerOptions": {
| ^
8 | "baseUrl": ".",
9 | "paths": {
10 | "*": [
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution6_classic.ts: SyntaxError: ';' expected. (6:21)
4 | // @filename: c:/root/src/tsconfig.json
5 | {
> 6 | "compilerOptions": {
| ^
7 | "rootDirs": [
8 | ".",
9 | "../generated/src"
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution6_node.ts: SyntaxError: ';' expected. (6:21)
4 | // @filename: c:/root/src/tsconfig.json
5 | {
> 6 | "compilerOptions": {
| ^
7 | "rootDirs": [
8 | ".",
9 | "../generated/src"
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution7_classic.ts: SyntaxError: ';' expected. (6:21)
4 | // @filename: c:/root/src/tsconfig.json
5 | {
> 6 | "compilerOptions": {
| ^
7 | "baseUrl": "../",
8 | "paths": {
9 | "*": [
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution7_node.ts: SyntaxError: ';' expected. (6:21)
4 | // @filename: c:/root/src/tsconfig.json
5 | {
> 6 | "compilerOptions": {
| ^
7 | "baseUrl": "../",
8 | "paths": {
9 | "*": [
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution_withExtension.ts: SyntaxError: ';' expected. (17:21)
15 | // @Filename: /tsconfig.json
16 | {
> 17 | "compilerOptions": {
| ^
18 | "baseUrl": ".",
19 | "paths": {
20 | "foo": ["foo/foo.ts"],
../TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution_withExtension_failedLookup.ts: SyntaxError: ';' expected. (9:21)
7 | // @Filename: /tsconfig.json
8 | {
> 9 | "compilerOptions": {
| ^
10 | "baseUrl": ".",
11 | "paths": {
12 | "foo": ["foo/foo.ts"]
../TypeScript/tests/cases/compiler/pathsValidation1.ts: SyntaxError: ';' expected. (3:21)
1 | // @filename: tsconfig.json
2 | {
> 3 | "compilerOptions": {
| ^
4 | "baseUrl": ".",
5 | "paths": {
6 | "*": "*"
../TypeScript/tests/cases/compiler/pathsValidation2.ts: SyntaxError: ';' expected. (3:21)
1 | // @filename: tsconfig.json
2 | {
> 3 | "compilerOptions": {
| ^
4 | "baseUrl": ".",
5 | "paths": {
6 | "*": [1]
../TypeScript/tests/cases/compiler/pathsValidation3.ts: SyntaxError: ';' expected. (3:21)
1 | // @filename: tsconfig.json
2 | {
> 3 | "compilerOptions": {
| ^
4 | "baseUrl": ".",
5 | "paths": {
6 | "foo": []
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,4 +9,5 @@
// @Filename: privacyCheckExternalModuleExportAssignmentOfGenericClass_1.ts
+
import Foo = require("./privacyCheckExternalModuleExportAssignmentOfGenericClass_0");
export default Bar;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -37,4 +37,5 @@
///<reference path='privacyFunctionCannotNameParameterTypeDeclFile_GlobalWidgets.ts'/>
+
import Widgets = require("./privacyFunctionCannotNameParameterTypeDeclFile_Widgets");
import Widgets1 = require("GlobalWidgets");
@@ -54,4 +55,5 @@
// @Filename:privacyFunctionCannotNameParameterTypeDeclFile_consumer.ts
+
import exporter = require("./privacyFunctionCannotNameParameterTypeDeclFile_exporter");
export class publicClassWithWithPrivateParmeterTypes {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -33,6 +33,8 @@
// Privacy errors - importing private elements
+
export import im_public_mi_private = require("./privacyTopLevelAmbientExternalModuleImportWithExport_require");
+
export import im_public_mu_private = require("./privacyTopLevelAmbientExternalModuleImportWithExport_require1");
export import im_public_mi_public = require("m");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -36,6 +36,8 @@
import im_private_mu_private = require("m2");
+
import im_private_mi_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require");
+
import im_private_mu_public = require("privacyTopLevelAmbientExternalModuleImportWithoutExport_require1");
../TypeScript/tests/cases/compiler/privacyTypeParameterOfFunction.ts: SyntaxError: ',' expected. (8:9)
6 | export interface publicInterfaceWithPrivateTypeParameters {
7 | // TypeParameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_type_1
> 8 | new <T in privateClass>(): privateClass,
| ^
9 |
10 | // TypeParameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_type_1
11 | <T in privateClass>(): privateClass,
../TypeScript/tests/cases/compiler/privacyTypeParameterOfFunctionDeclFile.ts: SyntaxError: ',' expected. (8:9)
6 |
7 | export interface publicInterfaceWithPrivateTypeParameters {
> 8 | new <T in privateClass>(): privateClass, // Error
| ^
9 | <T in privateClass>(): privateClass, // Error
10 | myMethod<T in privateClass>(): privateClass // Error
11 | }
../TypeScript/tests/cases/compiler/privacyTypeParametersOfInterface.ts: SyntaxError: ',' expected. (11:60)
9 |
10 | // TypeParameter_0_of_exported_interface_1_has_or_is_using_private_type_2
> 11 | export interface publicInterfaceWithPrivateTypeParameters<T in privateClass> {
| ^
12 | myMethod(
13 | val: T
14 | ): T, // Error
../TypeScript/tests/cases/compiler/privacyTypeParametersOfInterfaceDeclFile.ts: SyntaxError: ',' expected. (12:4)
10 |
11 | export interface publicInterfaceWithPrivateTypeParameters<
> 12 | T in privateClass // Error
| ^
13 | > {
14 | myMethod(val: T): T,
15 | myMethod0(): publicClassT<T>,
../TypeScript/tests/cases/compiler/promiseIdentityWithConstraints.ts: SyntaxError: ',' expected. (2:9)
1 | export interface IPromise<T, V> {
> 2 | then<U in T, W in V>(callback: (x: T) => IPromise<U, W>): IPromise<U, W>
| ^
3 | }
4 | export interface Promise<T, V> {
5 | then<U in T, W in V>(callback: (x: T) => Promise<U, W>): Promise<U, W>
../TypeScript/tests/cases/compiler/promisesWithConstraints.ts: SyntaxError: ',' expected. (5:21)
3 | }
4 |
> 5 | interface CPromise<T in { x: any }> {
| ^
6 | then<U in { x: any }>(cb: (x: T) => Promise<U>): Promise<U>
7 | }
8 |
../TypeScript/tests/cases/compiler/promiseTest.ts: SyntaxError: Invalid character. (1:0)
> 1 | ��
| ^
2 | interface Promise<T> {
3 | then<A>(success?: (value: T) => Promise<A>): Promise<A>;
4 | then<B>(success?: (value: T) => B): Promise<B>;
../TypeScript/tests/cases/compiler/propertyWrappedInTry.ts: SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. (3:4)
1 | class Foo {
2 |
> 3 | try {
| ^
4 |
5 | public bar = someInitThatMightFail();
6 |
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -10,4 +10,5 @@
// @Filename: recursiveExportAssignmentAndFindAliasedType4_moduleA.ts
+
import moduleC = require("recursiveExportAssignmentAndFindAliasedType4_moduleC");
import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -14,4 +14,5 @@
// @Filename: recursiveExportAssignmentAndFindAliasedType5_moduleA.ts
+
import moduleC = require("recursiveExportAssignmentAndFindAliasedType5_moduleC");
import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -18,4 +18,5 @@
// @Filename: recursiveExportAssignmentAndFindAliasedType6_moduleA.ts
+
import moduleC = require("recursiveExportAssignmentAndFindAliasedType6_moduleC");
import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -19,4 +19,5 @@
// @Filename: recursiveExportAssignmentAndFindAliasedType7_moduleA.ts
+
import moduleC = require("recursiveExportAssignmentAndFindAliasedType7_moduleC");
import ClassB = require("recursiveExportAssignmentAndFindAliasedType7_moduleB");
../TypeScript/tests/cases/compiler/recursiveGenericTypeHierarchy.ts: SyntaxError: ',' expected. (2:14)
1 | // used to ICE
> 2 | interface A<T in A<T, S>, S in A<T, S>> {}
| ^
3 | interface B<T in B<T, S>, S in B<T, S>> extends A<B<T, S>, B<T, S>> {}
4 |
../TypeScript/tests/cases/compiler/recursiveIdenticalAssignment.ts: SyntaxError: ',' expected. (6:4)
4 |
5 | interface B<
> 6 | T in B<B<T>> // error, constraint referencing itself
| ^
7 | > {
8 | x: B<T>
9 | }
../TypeScript/tests/cases/compiler/recursiveTypeIdentity.ts: SyntaxError: ',' expected. (2:5)
1 | interface A {
> 2 | <T in A>(x: T): void
| ^
3 | }
4 |
5 | interface B {
../TypeScript/tests/cases/compiler/recursiveTypes1.ts: SyntaxError: ',' expected. (1:19)
> 1 | interface Entity<T in Entity<T>> {
| ^
2 | X: T,
3 | Y: T
4 | }
../TypeScript/tests/cases/compiler/regExpWithSlashInCharClass.ts: Error: Comment location overlaps with node location
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:115:11)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at comments.forEach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:134:12)
at attachComments (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:51:14)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:81:23)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:217:25)
../TypeScript/tests/cases/compiler/reservedWords2.ts: SyntaxError: Expression expected. (1:8)
> 1 | import while = require("dfdf");
| ^
2 | import * as while from "foo"
3 |
4 | var typeof = 10;
../TypeScript/tests/cases/compiler/restArgMissingName.ts: SyntaxError: Identifier expected. (1:17)
> 1 | function sum (...) {}
| ^
2 |
../TypeScript/tests/cases/compiler/restParamModifier.ts: SyntaxError: '=' expected. (2:26)
1 | class C {
> 2 | constructor(...public rest: string[]) {}
| ^
3 | }
../TypeScript/tests/cases/compiler/shebangBeforeReferences.ts: SyntaxError: Invalid character. (9:0)
7 |
8 | // @filename: f.ts
> 9 | #!/usr/bin/env node
| ^
10 |
11 | /// <reference path="f.d.ts"/>
12 |
../TypeScript/tests/cases/compiler/shebangError.ts: SyntaxError: Invalid character. (2:0)
1 | var foo = 'Shebang is only allowed on the first line';
> 2 | #!/usr/bin/env node
| ^
../TypeScript/tests/cases/compiler/slashBeforeVariableDeclaration1.ts: SyntaxError: Invalid character. (1:0)
> 1 | \ declare var v;
| ^
../TypeScript/tests/cases/compiler/sourceMapValidationDecorators.ts: SyntaxError: ',' expected. (32:4)
30 | constructor(
31 | ParameterDecorator1
> 32 | ParameterDecorator2(20)
| ^
33 | public greeting: string,
34 | ParameterDecorator1
35 | ParameterDecorator2(30)
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringForArrayBindingPattern2.ts: SyntaxError: Identifier expected. (88:79)
86 | console.log(numberA3);
87 | }
> 88 | for ([numberA3, ...robotAInfo] = <Robot>[2, "trimmer", "trimming"], i = 0; i < 1; i++) {
| ^
89 | console.log(numberA3);
90 | }
91 | for ([...multiRobotAInfo] = multiRobotA, i = 0; i < 1; i++) {
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.ts: SyntaxError: Identifier expected. (113:84)
111 | console.log(numberA3);
112 | }
> 113 | for ([numberA3 = -1, ...robotAInfo] = <Robot>[2, "trimmer", "trimming"], i = 0; i < 1; i++) {
| ^
114 | console.log(numberA3);
115 | }
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringForObjectBindingPattern.ts: SyntaxError: '}' expected. (33:39)
31 | console.log(nameA);
32 | }
> 33 | for (let {name: nameA } = <Robot>{ name: "trimmer", skill: "trimming" }, i = 0; i < 1; i++) {
| ^
34 | console.log(nameA);
35 | }
36 | for (let { skills: { primary: primaryA, secondary: secondaryA } } = multiRobot, i = 0; i < 1; i++) {
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringForObjectBindingPattern2.ts: SyntaxError: '}' expected. (36:36)
34 | console.log(nameA);
35 | }
> 36 | for ({ name: nameA } = <Robot>{ name: "trimmer", skill: "trimming" }, i = 0; i < 1; i++) {
| ^
37 | console.log(nameA);
38 | }
39 | for ({ skills: { primary: primaryA, secondary: secondaryA } } = multiRobot, i = 0; i < 1; i++) {
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringForObjectBindingPatternDefaultValues.ts: SyntaxError: '}' expected. (33:50)
31 | console.log(nameA);
32 | }
> 33 | for (let {name: nameA = "noName" } = <Robot>{ name: "trimmer", skill: "trimming" }, i = 0; i < 1; i++) {
| ^
34 | console.log(nameA);
35 | }
36 | for (let {
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringForObjectBindingPatternDefaultValues2.ts: SyntaxError: '}' expected. (36:46)
34 | console.log(nameA);
35 | }
> 36 | for ({name: nameA = "noName" } = <Robot>{ name: "trimmer", skill: "trimming" }, i = 0; i < 1; i++) {
| ^
37 | console.log(nameA);
38 | }
39 | for ({
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts: SyntaxError: Identifier expected. (49:15)
47 | for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
48 | { primary: "nosKill", secondary: "noSkill" } } of
> 49 | <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
| ^
50 | { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
51 | console.log(primaryA);
52 | }
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts: SyntaxError: Identifier expected. (52:15)
50 | for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
51 | { primary: "nosKill", secondary: "noSkill" } } of
> 52 | <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
| ^
53 | { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
54 | console.log(primaryA);
55 | }
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringVariableStatementArrayBindingPattern3.ts: SyntaxError: '}' expected. (48:23)
46 |
47 | if (nameA == nameB) {
> 48 | console.log(skillB);
| ^
49 | }
50 |
51 | function getRobotB() {
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringVariableStatementArrayBindingPatternDefaultValues3.ts: SyntaxError: '}' expected. (46:23)
44 |
45 | if (nameA == nameB) {
> 46 | console.log(skillB);
| ^
47 | }
48 |
49 | function getRobotB() {
../TypeScript/tests/cases/compiler/sourceMapValidationDestructuringVariableStatementNestedObjectBindingPatternWithDefaultValues.ts: SyntaxError: '}' expected. (34:17)
32 | secondary: secondaryB = "noSkill"
33 | } = { primary: "noSkill", secondary: "noSkill" }
> 34 | } = <Robot>{ name: "Edger", skills: { primary: "edging", secondary: "branch trimming" } };
| ^
35 |
36 | if (nameB == nameB) {
37 | console.log(nameC);
../TypeScript/tests/cases/compiler/specializedLambdaTypeArguments.ts: SyntaxError: '=' expected. (2:9)
1 | class X<A> {
> 2 | prop: X<<Tany>() => Tany>;
| ^
3 | }
4 | var a: X<boolean>;
5 |
../TypeScript/tests/cases/compiler/staticClassProps.ts: SyntaxError: Declaration or statement expected. (4:8)
2 | {
3 | public foo() {
> 4 | static z = 1;
| ^
5 | }
6 | }
7 |
../TypeScript/tests/cases/compiler/staticsInAFunction.ts: SyntaxError: '(' expected. (1:12)
> 1 | function boo{
| ^
2 | static test()
3 | static test(name:string)
4 | static test(name?:any){}
../TypeScript/tests/cases/compiler/staticsInConstructorBodies.ts: SyntaxError: Declaration or statement expected. (3:2)
1 | class C {
2 | constructor() {
> 3 | static p1 = 0; // ERROR
| ^
4 | static m1() {} // ERROR
5 | }
6 | }
../TypeScript/tests/cases/compiler/stringLiteralsErrors.ts: SyntaxError: Unterminated string literal. (2:17)
1 | // Srtings missing line terminator
> 2 | var es1 = "line 1
| ^
3 | ";
4 | var es2 = 'line 1
5 | ';
../TypeScript/tests/cases/compiler/superAccess2.ts: SyntaxError: 'super' must be followed by an argument list or member access. (7:14)
5 |
6 | class Q extends P {
> 7 | xx = super;
| ^
8 | static yy = super; // error for static initializer accessing super
9 |
10 | // Super is not allowed in constructor args
../TypeScript/tests/cases/compiler/superErrors.ts: SyntaxError: 'super' must be followed by an argument list or member access. (3:17)
1 | function foo() {
2 | // super in a non class context
> 3 | var x = super;
| ^
4 | var y = () => super;
5 | var z = () => () => () => super;
6 | }
../TypeScript/tests/cases/compiler/superInLambdas.ts: SyntaxError: 'super' must be followed by an argument list or member access. (61:33)
59 |
60 | // super in a nested lambda in a constructor
> 61 | var x = () => () => super;
| ^
62 | }
63 | sayHello(): void {
64 | // super in a nested lambda in a method
../TypeScript/tests/cases/compiler/superWithTypeArgument.ts: SyntaxError: 'super' must be followed by an argument list or member access. (7:13)
5 | class D<T> extends C {
6 | constructor() {
> 7 | super<T>();
| ^
8 | }
9 | }
../TypeScript/tests/cases/compiler/superWithTypeArgument2.ts: SyntaxError: 'super' must be followed by an argument list or member access. (7:13)
5 | class D<T> extends C<T> {
6 | constructor(x) {
> 7 | super<T>(x);
| ^
8 | }
9 | }
../TypeScript/tests/cases/compiler/superWithTypeArgument3.ts: SyntaxError: 'super' must be followed by an argument list or member access. (8:13)
6 | class D<T> extends C<T> {
7 | constructor() {
> 8 | super<T>();
| ^
9 | }
10 | bar() {
11 | super.bar<T>(null);
../TypeScript/tests/cases/compiler/taggedTemplatesWithIncompleteNoSubstitutionTemplate1.ts: SyntaxError: Unterminated template literal. (7:14)
5 |
6 | // Incomplete call, not enough parameters.
> 7 | f `123qdawdrqw
| ^
../TypeScript/tests/cases/compiler/taggedTemplatesWithIncompleteNoSubstitutionTemplate2.ts: SyntaxError: Unterminated template literal. (7:3)
5 |
6 | // Incomplete call, not enough parameters, at EOF.
> 7 | f `
| ^
../TypeScript/tests/cases/compiler/taggedTemplatesWithIncompleteTemplateExpressions1.ts: SyntaxError: Expression expected. (7:16)
5 |
6 | // Incomplete call, not enough parameters.
> 7 | f `123qdawdrqw${
| ^
../TypeScript/tests/cases/compiler/taggedTemplatesWithIncompleteTemplateExpressions2.ts: SyntaxError: Expression expected. (7:17)
5 |
6 | // Incomplete call, enough parameters.
> 7 | f `123qdawdrqw${ }${
| ^
../TypeScript/tests/cases/compiler/taggedTemplatesWithIncompleteTemplateExpressions3.ts: SyntaxError: Expression expected. (7:22)
5 |
6 | // Incomplete call, not enough parameters.
> 7 | f `123qdawdrqw${ 1 }${
| ^
../TypeScript/tests/cases/compiler/taggedTemplatesWithIncompleteTemplateExpressions4.ts: SyntaxError: Expression expected. (7:23)
5 |
6 | // Incomplete call, but too many parameters.
> 7 | f `123qdawdrqw${ 1 }${ }${
| ^
../TypeScript/tests/cases/compiler/taggedTemplatesWithIncompleteTemplateExpressions5.ts: SyntaxError: Expression expected. (7:29)
5 |
6 | // Incomplete call, but too many parameters.
> 7 | f `123qdawdrqw${ 1 }${ 2 }${
| ^
../TypeScript/tests/cases/compiler/taggedTemplatesWithIncompleteTemplateExpressions6.ts: SyntaxError: Expression expected. (7:22)
5 |
6 | // Incomplete call, not enough parameters, at EOF.
> 7 | f `123qdawdrqw${ 1 }${
| ^
../TypeScript/tests/cases/compiler/targetTypeBaseCalls.ts: SyntaxError: Invalid character. (1:0)
> 1 | ��function foo(x: (s: string) => void) { }
| ^
2 |
3 |
4 |
../TypeScript/tests/cases/compiler/targetTypeCastTest.ts: SyntaxError: Expression expected. (12:36)
10 | }
11 |
> 12 | var add = <Adder>function(x,y) { return x+ y; }
| ^
13 |
14 |
15 | interface Adder2 {
../TypeScript/tests/cases/compiler/thisBinding.ts: SyntaxError: ',' expected. (19:7)
17 |
18 | class C {
> 19 | f(x: number) {
| ^
20 | }
21 | }
../TypeScript/tests/cases/compiler/throwWithoutNewLine1.ts: SyntaxError: Expression expected. (1:5)
> 1 | throw
| ^
../TypeScript/tests/cases/compiler/throwWithoutNewLine2.ts: SyntaxError: Expression expected. (1:6)
> 1 | throw ;
| ^
2 | a;
3 |
../TypeScript/tests/cases/compiler/tooManyTypeParameters1.ts: SyntaxError: Identifier expected. (5:8)
3 |
4 | var x = <T>() => {};
> 5 | x<number,number>();
| ^
6 |
7 | class C<T> {}
8 | var c = new C<Date,Date>();
../TypeScript/tests/cases/compiler/typeAssertionToGenericFunctionType.ts: SyntaxError: Expression expected. (2:7)
1 | var x = {
> 2 | a: < <T>(x: T) => T > ((x: any) => 1),
| ^
3 | b: <T>(x: T) => { x }
4 | }
5 | x.a<string>(1); // bug was that this caused 'Could not find symbol T' on return type T in the type assertion on x.a's definition
../TypeScript/tests/cases/compiler/typeCheckTypeArgument.ts: SyntaxError: ',' expected. (1:10)
> 1 | var f: <T in UNKNOWN>() => void;
| ^
2 |
3 | interface IFoo<T in UNKNOWN> {}
4 |
../TypeScript/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter.ts: SyntaxError: ',' expected. (2:5)
1 | interface A<T> {
> 2 | <U in T>(x: U[])
| ^
3 | }
4 |
5 | interface B<T> {
../TypeScript/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts: SyntaxError: ',' expected. (2:8)
1 | interface A<T> {
> 2 | foo<U in T>(x: A<A<U>>)
| ^
3 | }
4 |
5 | interface B<T> {
../TypeScript/tests/cases/compiler/typeParameterConstraintInstantiation.ts: SyntaxError: ',' expected. (4:8)
2 |
3 | interface Mapper<T> {
> 4 | map<U in T, V in U[]>(f: (item: T) => U): V
| ^
5 | }
6 |
7 | var m: Mapper<string>;
../TypeScript/tests/cases/compiler/typeParameterFixingWithConstraints.ts: SyntaxError: ',' expected. (6:11)
4 |
5 | interface IFoo {
> 6 | foo<TBar in IBar>(
| ^
7 | bar: TBar,
8 | bar1: (bar: TBar) => TBar,
9 | bar2: (bar: TBar) => TBar
../TypeScript/tests/cases/compiler/typeParameterFixingWithContextSensitiveArguments4.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (7:30)
5 | var a: A, b: B;
6 |
> 7 | var d = f(a, b, x => x, x => <any>x); // Type [A, B]
| ^
../TypeScript/tests/cases/compiler/unaryPlus.ts: SyntaxError: '}' expected. (4:13)
2 | var a = +1;
3 | var b = +(<any>"");
> 4 | enum E { some, thing };
| ^
5 | var c = +E.some;
6 |
7 | // also allowed, used to be errors
../TypeScript/tests/cases/compiler/uncaughtCompilerError2.ts: SyntaxError: Expression expected. (2:4)
1 | function getObj() {
> 2 | ().toString();
| ^
3 | }
4 |
../TypeScript/tests/cases/compiler/unclosedExportClause01.ts: SyntaxError: ',' expected. (7:17)
5 |
6 | // @filename: t2.ts
> 7 | export { x, from "./t1"
| ^
8 |
9 | // @filename: t3.ts
10 | export { from "./t1"
../TypeScript/tests/cases/compiler/unclosedExportClause02.ts: SyntaxError: ',' expected. (8:4)
6 | // @filename: t2.ts
7 | export { x, from
> 8 | "./t1";
| ^
9 |
10 | // @filename: t3.ts
11 | export { from
../TypeScript/tests/cases/compiler/underscoreTest1.ts: SyntaxError: Expression expected. (809:26)
807 | .filter(function (num) { return num % 2 == 0; })
808 | .tap(<any>alert)
> 809 | .map(function (num) { return num * num })
| ^
810 | .value();
811 |
812 | _.has({ a: 1, b: 2, c: 3 }, "b");
../TypeScript/tests/cases/compiler/unexpectedStatementBlockTerminator.ts: SyntaxError: Declaration or statement expected. (4:0)
2 |
3 | class Bar {}
> 4 | case
| ^
5 |
6 | function Goo() {return {a:1,b:2};}
7 |
../TypeScript/tests/cases/compiler/unicodeIdentifierName2.ts: SyntaxError: Invalid character. (1:6)
> 1 | var a₁ = "hello"; alert(a₁)
| ^
../TypeScript/tests/cases/compiler/unicodeIdentifierNames.ts: SyntaxError: Invalid character. (1:0)
> 1 | ��// This test is passing, except that on node the resulting file will not have a BOM and on CScript it will which makes
| ^
2 |
3 | // impossible to use a single baseline file to match the result of both. this test should be enabled once this issue is resolved.
4 |
../TypeScript/tests/cases/compiler/unknownSymbols1.ts: SyntaxError: '}' expected. (12:7)
10 |
11 | class C<T> {
> 12 | foo: asdf;
| ^
13 | bar: C<asdf>;
14 | }
15 |
../TypeScript/tests/cases/compiler/unknownSymbols2.ts: SyntaxError: Expression expected. (16:8)
14 |
15 | switch (asdf) {
> 16 | case qwerty:
| ^
17 | break;
18 | default:
19 | break;
../TypeScript/tests/cases/compiler/unresolvedTypeAssertionSymbol.ts: SyntaxError: JSX element 'asdf' has no corresponding closing tag. (2:9)
1 | var x = 1;
> 2 | var y = <asdf>x;
| ^
3 |
4 |
../TypeScript/tests/cases/compiler/unterminatedRegexAtEndOfSource1.ts: SyntaxError: Unterminated regular expression literal. (1:9)
> 1 | var a = /
| ^
../TypeScript/tests/cases/compiler/unterminatedStringLiteralWithBackslash1.ts: SyntaxError: Unexpected end of text. (1:2)
> 1 | "\
| ^
../TypeScript/tests/cases/compiler/untypedModuleImport_withAugmentation2.ts: SyntaxError: ';' expected. (11:5)
9 |
10 | // @Filename: /node_modules/js/index.js
> 11 | This file is not processed.
| ^
12 |
13 | // @Filename: /a.ts
14 | import { } from "augmenter";
../TypeScript/tests/cases/compiler/unusedLocalsAndParametersTypeAliases.ts: SyntaxError: ',' expected. (15:22)
13 | // used in extends clause
14 | type handler3 = () => void;
> 15 | export interface I3<T in handler3> {
| ^
16 | getHandler: T
17 | }
18 |
../TypeScript/tests/cases/compiler/unusedTypeParameterInLambda1.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (6:16)
4 | class A {
5 | public f1() {
> 6 | return <T>() => {
| ^
7 |
8 | }
9 | }
../TypeScript/tests/cases/compiler/validRegexp.ts: SyntaxError: ',' expected. (1:23)
> 1 | var x = / [a - z /]$ / i;
| ^
2 | var x1 = /[a-z/]$/i;
3 | var x2 = /[a-z/]$ /i;
../TypeScript/tests/cases/compiler/varArgWithNoParamName.ts: SyntaxError: Identifier expected. (1:15)
> 1 | function t1(...) {}
| ^
../TypeScript/tests/cases/compiler/widenedTypes.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/ambient/ambientShorthand.ts: TypeError: Cannot read property 'type' of undefined
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2357:37)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/ambient/ambientShorthand_declarationEmit.ts: TypeError: Cannot read property 'type' of undefined
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2357:37)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/ambient/ambientShorthand_duplicate.ts: TypeError: Cannot read property 'type' of undefined
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2357:37)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/ambient/ambientShorthand_merging.ts: TypeError: Cannot read property 'type' of undefined
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2357:37)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/ambient/ambientShorthand_reExport.ts: TypeError: Cannot read property 'type' of undefined
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2357:37)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction5_es2017.ts: SyntaxError: ',' expected. (4:23)
2 | // @noEmitHelpers: true
3 |
> 4 | var foo = async (await): Promise<void> => {
| ^
5 | }
../TypeScript/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction6_es2017.ts: SyntaxError: Expression expected. (4:26)
2 | // @noEmitHelpers: true
3 |
> 4 | var foo = async (a = await): Promise<void> => {
| ^
5 | }
../TypeScript/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction7_es2017.ts: SyntaxError: Expression expected. (6:28)
4 | var bar = async (): Promise<void> => {
5 | // 'await' here is an identifier, and not an await expression.
> 6 | var foo = async (a = await): Promise<void> => {
| ^
7 | }
8 | }
../TypeScript/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction8_es2017.ts: SyntaxError: Expression expected. (5:18)
3 |
4 | var foo = async (): Promise<void> => {
> 5 | var v = { [await]: foo }
| ^
6 | }
../TypeScript/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction9_es2017.ts: SyntaxError: ',' expected. (3:36)
1 | // @target: es2017
2 | // @noEmitHelpers: true
> 3 | var foo = async (a = await => await): Promise<void> => {
| ^
4 | }
../TypeScript/tests/cases/conformance/async/es2017/await_unaryExpression_es2017_3.ts: SyntaxError: Expression expected. (4:6)
2 |
3 | async function bar1() {
> 4 | ++await 42; // Error
| ^
5 | }
6 |
7 | async function bar2() {
../TypeScript/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration10_es2017.ts: SyntaxError: Expression expected. (3:29)
1 | // @target: es2017
2 | // @noEmitHelpers: true
> 3 | async function foo(a = await => await): Promise<void> {
| ^
4 | }
../TypeScript/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration12_es2017.ts: SyntaxError: '(' expected. (3:23)
1 | // @target: es2017
2 | // @noEmitHelpers: true
> 3 | var v = async function await(): Promise<void> { }
| ^
../TypeScript/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration5_es2017.ts: SyntaxError: Parameter declaration expected. (3:19)
1 | // @target: es2017
2 | // @noEmitHelpers: true
> 3 | async function foo(await): Promise<void> {
| ^
4 | }
../TypeScript/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration6_es2017.ts: SyntaxError: Expression expected. (3:28)
1 | // @target: es2017
2 | // @noEmitHelpers: true
> 3 | async function foo(a = await): Promise<void> {
| ^
4 | }
../TypeScript/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration7_es2017.ts: SyntaxError: Expression expected. (5:30)
3 | async function bar(): Promise<void> {
4 | // 'await' here is an identifier, and not a yield expression.
> 5 | async function foo(a = await): Promise<void> {
| ^
6 | }
7 | }
../TypeScript/tests/cases/conformance/async/es2017/functionDeclarations/asyncFunctionDeclaration9_es2017.ts: SyntaxError: Expression expected. (4:18)
2 | // @noEmitHelpers: true
3 | async function foo(): Promise<void> {
> 4 | var v = { [await]: foo }
| ^
5 | }
../TypeScript/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction5_es5.ts: SyntaxError: ',' expected. (5:23)
3 | // @noEmitHelpers: true
4 |
> 5 | var foo = async (await): Promise<void> => {
| ^
6 | }
../TypeScript/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts: SyntaxError: Expression expected. (5:26)
3 | // @noEmitHelpers: true
4 |
> 5 | var foo = async (a = await): Promise<void> => {
| ^
6 | }
../TypeScript/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts: SyntaxError: Expression expected. (7:28)
5 | var bar = async (): Promise<void> => {
6 | // 'await' here is an identifier, and not an await expression.
> 7 | var foo = async (a = await): Promise<void> => {
| ^
8 | }
9 | }
../TypeScript/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts: SyntaxError: Expression expected. (6:18)
4 |
5 | var foo = async (): Promise<void> => {
> 6 | var v = { [await]: foo }
| ^
7 | }
../TypeScript/tests/cases/conformance/async/es5/asyncArrowFunction/asyncArrowFunction9_es5.ts: SyntaxError: ',' expected. (4:36)
2 | // @lib: es5,es2015.promise
3 | // @noEmitHelpers: true
> 4 | var foo = async (a = await => await): Promise<void> => {
| ^
5 | }
../TypeScript/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration10_es5.ts: SyntaxError: Expression expected. (4:29)
2 | // @lib: es5,es2015.promise
3 | // @noEmitHelpers: true
> 4 | async function foo(a = await => await): Promise<void> {
| ^
5 | }
../TypeScript/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration12_es5.ts: SyntaxError: '(' expected. (4:23)
2 | // @lib: es5,es2015.promise
3 | // @noEmitHelpers: true
> 4 | var v = async function await(): Promise<void> { }
| ^
../TypeScript/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration5_es5.ts: SyntaxError: Parameter declaration expected. (4:19)
2 | // @lib: es5,es2015.promise
3 | // @noEmitHelpers: true
> 4 | async function foo(await): Promise<void> {
| ^
5 | }
../TypeScript/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts: SyntaxError: Expression expected. (4:28)
2 | // @lib: es5,es2015.promise
3 | // @noEmitHelpers: true
> 4 | async function foo(a = await): Promise<void> {
| ^
5 | }
../TypeScript/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts: SyntaxError: Expression expected. (6:30)
4 | async function bar(): Promise<void> {
5 | // 'await' here is an identifier, and not a yield expression.
> 6 | async function foo(a = await): Promise<void> {
| ^
7 | }
8 | }
../TypeScript/tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts: SyntaxError: Expression expected. (5:18)
3 | // @noEmitHelpers: true
4 | async function foo(): Promise<void> {
> 5 | var v = { [await]: foo }
| ^
6 | }
../TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts: SyntaxError: ',' expected. (4:23)
2 | // @noEmitHelpers: true
3 |
> 4 | var foo = async (await): Promise<void> => {
| ^
5 | }
../TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction6_es6.ts: SyntaxError: Expression expected. (4:26)
2 | // @noEmitHelpers: true
3 |
> 4 | var foo = async (a = await): Promise<void> => {
| ^
5 | }
../TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction7_es6.ts: SyntaxError: Expression expected. (6:28)
4 | var bar = async (): Promise<void> => {
5 | // 'await' here is an identifier, and not an await expression.
> 6 | var foo = async (a = await): Promise<void> => {
| ^
7 | }
8 | }
../TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction8_es6.ts: SyntaxError: Expression expected. (5:18)
3 |
4 | var foo = async (): Promise<void> => {
> 5 | var v = { [await]: foo }
| ^
6 | }
../TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts: SyntaxError: ',' expected. (3:36)
1 | // @target: ES6
2 | // @noEmitHelpers: true
> 3 | var foo = async (a = await => await): Promise<void> => {
| ^
4 | }
../TypeScript/tests/cases/conformance/async/es6/await_unaryExpression_es6_3.ts: SyntaxError: Expression expected. (4:6)
2 |
3 | async function bar1() {
> 4 | ++await 42; // Error
| ^
5 | }
6 |
7 | async function bar2() {
../TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts: SyntaxError: Expression expected. (3:29)
1 | // @target: ES6
2 | // @noEmitHelpers: true
> 3 | async function foo(a = await => await): Promise<void> {
| ^
4 | }
../TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration12_es6.ts: SyntaxError: '(' expected. (3:23)
1 | // @target: ES6
2 | // @noEmitHelpers: true
> 3 | var v = async function await(): Promise<void> { }
| ^
../TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts: SyntaxError: Parameter declaration expected. (3:19)
1 | // @target: ES6
2 | // @noEmitHelpers: true
> 3 | async function foo(await): Promise<void> {
| ^
4 | }
../TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration6_es6.ts: SyntaxError: Expression expected. (3:28)
1 | // @target: ES6
2 | // @noEmitHelpers: true
> 3 | async function foo(a = await): Promise<void> {
| ^
4 | }
../TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration7_es6.ts: SyntaxError: Expression expected. (5:30)
3 | async function bar(): Promise<void> {
4 | // 'await' here is an identifier, and not a yield expression.
> 5 | async function foo(a = await): Promise<void> {
| ^
6 | }
7 | }
../TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration9_es6.ts: SyntaxError: Expression expected. (4:18)
2 | // @noEmitHelpers: true
3 | async function foo(): Promise<void> {
> 4 | var v = { [await]: foo }
| ^
5 | }
../TypeScript/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractAccessor.ts: Error: Comment "error" was not printed. Please report this error!
at astComments.forEach.comment (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:67:15)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:85:3)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:217:25)
at err (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:331:16)
at patterns.forEach.pattern (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:375:7)
at Array.forEach (native)
../TypeScript/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractCrashedOnce.ts: SyntaxError: Identifier expected. (8:4)
6 | test() {
7 | this.
> 8 | }
| ^
9 | }
10 | var x = new bar();
../TypeScript/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations2.ts: Error: Comment "error -- declarations must be adjacent" was not printed. Please report this error!
at astComments.forEach.comment (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:67:15)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:85:3)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:217:25)
at err (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:331:16)
at patterns.forEach.pattern (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:375:7)
at Array.forEach (native)
../TypeScript/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts: SyntaxError: Declaration or statement expected. (3:0)
1 | export default abstract class A {}
2 | export abstract class B {}
> 3 | default abstract class C {}
| ^
4 | import abstract class D {}
../TypeScript/tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractSuperCalls.ts: Error: Comment "inherits bar. But BB is abstract, so this is OK." was not printed. Please report this error!
at astComments.forEach.comment (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:67:15)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:85:3)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:217:25)
at err (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:331:16)
at patterns.forEach.pattern (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:375:7)
at Array.forEach (native)
../TypeScript/tests/cases/conformance/classes/classDeclarations/classBody/classBodyWithStatements.ts: SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. (2:4)
1 | class C {
> 2 | var x = 1;
| ^
3 | }
4 |
5 | class C2 {
../TypeScript/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts: SyntaxError: Expression expected. (7:18)
5 | class C3 extends boolean { }
6 | class C4 extends Void { }
> 7 | class C4a extends void {}
| ^
8 | class C5 extends Null { }
9 | class C5a extends null { }
10 | class C6 extends undefined { }
../TypeScript/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts: SyntaxError: Expression expected. (3:18)
1 | // classes cannot extend primitives
2 |
> 3 | class C4a extends void {}
| ^
4 | class C5a extends null { }
../TypeScript/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts: SyntaxError: ',' expected. (6:30)
4 | class C extends I { } // error
5 |
> 6 | class C2 extends { foo: string; } { } // error
| ^
7 | var x: { foo: string; }
8 | class C3 extends x { } // error
9 |
../TypeScript/tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts: SyntaxError: ',' expected. (1:30)
> 1 | class C2 extends { foo: string; } { } // error
| ^
2 |
3 | class C6 extends []{ } // error
../TypeScript/tests/cases/conformance/classes/classDeclarations/classWithPredefinedTypesAsNames2.ts: SyntaxError: '{' expected. (3:6)
1 | // classes cannot use predefined types as names
2 |
> 3 | class void {}
| ^
../TypeScript/tests/cases/conformance/classes/constructorDeclarations/constructorWithAssignableReturnExpression.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (33:21)
31 | x: T;
32 | constructor() {
> 33 | return { x: <T>null };
| ^
34 | }
35 | }
../TypeScript/tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts: SyntaxError: Type expected. (8:7)
6 |
7 | class Derived extends Base {
> 8 | a: super();
| ^
9 | b() {
10 | super();
11 | }
../TypeScript/tests/cases/conformance/classes/indexMemberDeclarations/privateIndexer2.ts: SyntaxError: ']' expected. (4:14)
2 |
3 | var x = {
> 4 | private [x: string]: string;
| ^
5 | }
6 |
7 | var y: {
../TypeScript/tests/cases/conformance/classes/members/accessibility/privateInstanceMemberAccessibility.ts: SyntaxError: Identifier expected. (10:14)
8 | return super.foo; // error
9 | }
> 10 | z: typeof super.foo; // error
| ^
11 |
12 | a: this.foo; // error
13 | }
../TypeScript/tests/cases/conformance/classes/nestedClassDeclaration.ts: SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. (5:4)
3 | class C {
4 | x: string;
> 5 | class C2 {
| ^
6 | }
7 | }
8 |
../TypeScript/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorLocals.ts: SyntaxError: Identifier expected. (7:14)
5 | b: typeof z; // error
6 | c = this.z; // error
> 7 | d: typeof this.z; // error
| ^
8 | constructor(x) {
9 | z = 1;
10 | }
../TypeScript/tests/cases/conformance/classes/propertyMemberDeclarations/initializerReferencingConstructorParameters.ts: SyntaxError: Identifier expected. (17:14)
15 | class E {
16 | a = this.x; // ok
> 17 | b: typeof this.x; // error
| ^
18 | constructor(public x) { }
19 | }
20 |
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -1257,5 +1257,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
}
]
@@ -1327,5 +1329,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
}
]
@@ -1385,5 +1389,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
}
]
@@ -1455,5 +1461,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
}
]
@@ -1513,5 +1521,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
}
]
@@ -1583,5 +1593,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
}
]
@@ -1641,5 +1653,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
}
]
@@ -1711,5 +1725,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
}
]
Index:
===================================================================
---
+++
@@ -2,191 +2,188 @@
// name
class StaticName {
- static name: number; // error
- name: string; // ok
+ static name: number; // error
+ name: string; // ok
}
class StaticNameFn {
- static name() {} // error
- name() {} // ok
+ static name() {} // error
+ name() {} // ok
}
// length
class StaticLength {
- static length: number; // error
- length: string; // ok
+ static length: number; // error
+ length: string; // ok
}
class StaticLengthFn {
- static length() {} // error
- length() {} // ok
+ static length() {} // error
+ length() {} // ok
}
// prototype
class StaticPrototype {
- static prototype: number; // error
- prototype: string; // ok
+ static prototype: number; // error
+ prototype: string; // ok
}
class StaticPrototypeFn {
- static prototype() {} // error
- prototype() {} // ok
+ static prototype() {} // error
+ prototype() {} // ok
}
// caller
class StaticCaller {
- static caller: number; // error
- caller: string; // ok
+ static caller: number; // error
+ caller: string; // ok
}
class StaticCallerFn {
- static caller() {} // error
- caller() {} // ok
+ static caller() {} // error
+ caller() {} // ok
}
// arguments
class StaticArguments {
- static arguments: number; // error
- arguments: string; // ok
+ static arguments: number; // error
+ arguments: string; // ok
}
class StaticArgumentsFn {
- static arguments() {} // error
- arguments() {} // ok
+ static arguments() {} // error
+ arguments() {} // ok
}
-
-
// === Static properties on anonymous classes ===
// name
var StaticName_Anonymous = class {
- static name: number; // error
- name: string; // ok
-}
+ static name: number; // error
+ name: string; // ok
+};
var StaticNameFn_Anonymous = class {
- static name() {} // error
- name() {} // ok
-}
+ static name() {} // error
+ name() {} // ok
+};
// length
var StaticLength_Anonymous = class {
- static length: number; // error
- length: string; // ok
-}
+ static length: number; // error
+ length: string; // ok
+};
var StaticLengthFn_Anonymous = class {
- static length() {} // error
- length() {} // ok
-}
+ static length() {} // error
+ length() {} // ok
+};
// prototype
var StaticPrototype_Anonymous = class {
- static prototype: number; // error
- prototype: string; // ok
-}
+ static prototype: number; // error
+ prototype: string; // ok
+};
var StaticPrototypeFn_Anonymous = class {
- static prototype() {} // error
- prototype() {} // ok
-}
+ static prototype() {} // error
+ prototype() {} // ok
+};
// caller
var StaticCaller_Anonymous = class {
- static caller: number; // error
- caller: string; // ok
-}
+ static caller: number; // error
+ caller: string; // ok
+};
var StaticCallerFn_Anonymous = class {
- static caller() {} // error
- caller() {} // ok
-}
+ static caller() {} // error
+ caller() {} // ok
+};
// arguments
var StaticArguments_Anonymous = class {
- static arguments: number; // error
- arguments: string; // ok
-}
+ static arguments: number; // error
+ arguments: string; // ok
+};
var StaticArgumentsFn_Anonymous = class {
- static arguments() {} // error
- arguments() {} // ok
-}
+ static arguments() {} // error
+ arguments() {} // ok
+};
-
// === Static properties on default exported classes ===
// name
-module TestOnDefaultExportedClass_1 {
- class StaticName {
- static name: number; // error
- name: string; // ok
- }
+namespace TestOnDefaultExportedClass_1 { // error // ok
+ class StaticName {
+ static name: number;
+ name: string;
+ }
}
-module TestOnDefaultExportedClass_2 {
- class StaticNameFn {
- static name() {} // error
- name() {} // ok
- }
+namespace TestOnDefaultExportedClass_2 { // error // ok
+ class StaticNameFn {
+ static name() {}
+ name() {}
+ }
}
\ No newline at end of file
// length
-module TestOnDefaultExportedClass_3 {
- export default class StaticLength {
- static length: number; // error
- length: string; // ok
- }
+namespace TestOnDefaultExportedClass_3 { // error // ok
+ export class StaticLength {
+ static length: number;
+ length: string;
+ }
}
-module TestOnDefaultExportedClass_4 {
- export default class StaticLengthFn {
- static length() {} // error
- length() {} // ok
- }
+namespace TestOnDefaultExportedClass_4 { // error // ok
+ export class StaticLengthFn {
+ static length() {}
+ length() {}
+ }
}
// prototype
-module TestOnDefaultExportedClass_5 {
- export default class StaticPrototype {
- static prototype: number; // error
- prototype: string; // ok
- }
+namespace TestOnDefaultExportedClass_5 { // error // ok
+ export class StaticPrototype {
+ static prototype: number;
+ prototype: string;
+ }
}
-module TestOnDefaultExportedClass_6 {
- export default class StaticPrototypeFn {
- static prototype() {} // error
- prototype() {} // ok
- }
+namespace TestOnDefaultExportedClass_6 { // error // ok
+ export class StaticPrototypeFn {
+ static prototype() {}
+ prototype() {}
+ }
}
// caller
-module TestOnDefaultExportedClass_7 {
- export default class StaticCaller {
- static caller: number; // error
- caller: string; // ok
- }
+namespace TestOnDefaultExportedClass_7 { // error // ok
+ export class StaticCaller {
+ static caller: number;
+ caller: string;
+ }
}
-module TestOnDefaultExportedClass_8 {
- export default class StaticCallerFn {
- static caller() {} // error
- caller() {} // ok
- }
+namespace TestOnDefaultExportedClass_8 { // error // ok
+ export class StaticCallerFn {
+ static caller() {}
+ caller() {}
+ }
}
// arguments
-module TestOnDefaultExportedClass_9 {
- export default class StaticArguments {
- static arguments: number; // error
- arguments: string; // ok
- }
+namespace TestOnDefaultExportedClass_9 { // error // ok
+ export class StaticArguments {
+ static arguments: number;
+ arguments: string;
+ }
}
-module TestOnDefaultExportedClass_10 {
- export default class StaticArgumentsFn {
- static arguments() {} // error
- arguments() {} // ok
- }
-}
+namespace TestOnDefaultExportedClass_10 { // error // ok
+ export class StaticArgumentsFn {
+ static arguments() {}
+ arguments() {}
+ }
+}
../TypeScript/tests/cases/conformance/constEnums/constEnum2.ts: SyntaxError: ',' expected. (14:4)
12 | e = 199 * Math.floor(Math.random() * 1000),
13 | f = d - (100 * Math.floor(Math.random() % 8))
> 14 | g = CONST,
| ^
15 | }
../TypeScript/tests/cases/conformance/controlFlow/controlFlowBinaryOrExpression.ts: SyntaxError: '}' expected. (26:20)
24 | var sourceObj: EventTargetLike = <any>undefined;
25 | if (isNodeList(sourceObj)) {
> 26 | sourceObj.length;
| ^
27 | }
28 |
29 | if (isHTMLCollection(sourceObj)) {
../TypeScript/tests/cases/conformance/controlFlow/typeGuardsAsAssertions.ts: SyntaxError: Identifier expected. (116:19)
114 | x = null;
115 | x!.slice();
> 116 | x = <undefined | null>undefined;
| ^
117 | x!.slice();
118 | x = <string | undefined>"";
119 | x!.slice();
../TypeScript/tests/cases/conformance/controlFlow/typeGuardsNestedAssignments.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/controlFlow/typeGuardsTypeParameters.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/declarationEmit/typePredicates/declarationEmitThisPredicates01.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2169:14)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1697:21)
../TypeScript/tests/cases/conformance/declarationEmit/typePredicates/declarationEmitThisPredicates02.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2169:14)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1697:21)
../TypeScript/tests/cases/conformance/declarationEmit/typePredicates/declarationEmitThisPredicatesWithPrivateName01.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2169:14)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1697:21)
../TypeScript/tests/cases/conformance/declarationEmit/typePredicates/declarationEmitThisPredicatesWithPrivateName02.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2169:14)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1697:21)
../TypeScript/tests/cases/conformance/decorators/1.0lib-noErrors.ts: SyntaxError: ',' expected. (1223:11)
1221 | * @param items Additional items to add to the end of array1.
1222 | */
> 1223 | concat<U in T[]>(
| ^
1224 | ...items: U[]
1225 | ): T[],
1226 | /**
../TypeScript/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor1.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor2.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor3.ts: SyntaxError: ';' expected. (6:11)
4 |
5 | class C {
> 6 | public @dec get accessor() { return 1; }
| ^
7 | }
../TypeScript/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor4.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor5.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor6.ts: SyntaxError: ';' expected. (6:11)
4 |
5 | class C {
> 6 | public @dec set accessor(value: number) { }
| ^
7 | }
../TypeScript/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor7.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/accessor/decoratorOnClassAccessor8.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/constructableDecoratorOnClass01.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor2.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
../TypeScript/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor3.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
../TypeScript/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor4.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
../TypeScript/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts: SyntaxError: ',' expected. (6:23)
4 |
5 | class C {
> 6 | constructor(public @dec p: number) {}
| ^
7 | }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,5 +7,5 @@
declare function forwardRef(x: any): any
declare var Something: any;
-Something({ v: () => Testing123 })
+Something({ v: () => Testing123 });
export class Testing123 {
static prop0: string;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,4 +7,4 @@
declare function forwardRef(x: any): any
declare var Something: any;
-Something({ v: () => Testing123 })
+Something({ v: () => Testing123 });
export class Testing123 {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,5 +7,5 @@
declare function forwardRef(x: any): any
declare var Something: any;
-Something({ v: () => Testing123 })
+Something({ v: () => Testing123 });
export class Testing123 {
static prop0: string;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,4 +7,4 @@
declare function forwardRef(x: any): any
declare var Something: any;
-Something({ v: () => Testing123 })
+Something({ v: () => Testing123 });
export class Testing123 {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
function decorate(target: any) {}
-decorate
+decorate;
export default class Decorated {}
../TypeScript/tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts: SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. (8:2)
6 |
7 | class A {
> 8 | (x, p) => {
| ^
9 | var a = 3;
10 | func(a);
11 | return x;
../TypeScript/tests/cases/conformance/decorators/class/decoratorInstantiateModulesInFunctionBodies.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/decoratorOnClass1.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,4 +4,4 @@
declare function dec<T>(target: T): T
-dec
+dec;
export class C {}
../TypeScript/tests/cases/conformance/decorators/class/decoratorOnClass3.ts: SyntaxError: Declaration or statement expected. (6:0)
4 | declare function dec<T>(target: T): T;
5 |
> 6 | export
| ^
7 | @dec
8 | class C {
9 | }
../TypeScript/tests/cases/conformance/decorators/class/decoratorOnClass4.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/conformance/decorators/class/decoratorOnClass5.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/conformance/decorators/class/decoratorOnClass8.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod1.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod10.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod13.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod2.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod3.ts: SyntaxError: ';' expected. (6:11)
4 |
5 | class C {
> 6 | public @dec method() {}
| ^
7 | }
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod4.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod5.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod7.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod8.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload1.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethodOverload2.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/method/parameter/decoratorOnClassMethodParameter1.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
../TypeScript/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty1.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty10.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty2.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty3.ts: SyntaxError: ';' expected. (6:11)
4 |
5 | class C {
> 6 | public @dec prop;
| ^
7 | }
../TypeScript/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/class/property/decoratorOnClassProperty7.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/decoratorCallGeneric.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
../TypeScript/tests/cases/conformance/decorators/decoratorMetadata.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/decorators/invalid/decoratorOnArrowFunction.ts: SyntaxError: Expression expected. (3:8)
1 | declare function dec<T>(target: T): T;
2 |
> 3 | var F = @dec () => {
| ^
4 | }
../TypeScript/tests/cases/conformance/decorators/invalid/decoratorOnEnum2.ts: SyntaxError: Enum member expected. (4:4)
2 |
3 | enum E {
> 4 | @dec A
| ^
5 | }
../TypeScript/tests/cases/conformance/decorators/invalid/decoratorOnFunctionExpression.ts: SyntaxError: Expression expected. (3:8)
1 | declare function dec<T>(target: T): T;
2 |
> 3 | var F = @dec function () {
| ^
4 | }
../TypeScript/tests/cases/conformance/decorators/missingDecoratorType.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -20,5 +20,5 @@
class C4 {
async f() {
- const x = yield* [1];
+ const x = yield * [1];
}
}
@@ -26,7 +26,9 @@
class C5 {
async f() {
- const x = yield* (async function*() {
- yield 1;
- })();
+ const x =
+ yield *
+ (async function*() {
+ yield 1;
+ })();
}
}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -20,5 +20,5 @@
const o4 = {
async f() {
- const x = yield* [1];
+ const x = yield * [1];
}
};
@@ -26,7 +26,9 @@
const o5 = {
async f() {
- const x = yield* (async function*() {
- yield 1;
- })();
+ const x =
+ yield *
+ (async function*() {
+ yield 1;
+ })();
}
};
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -20,5 +20,5 @@
class C4 {
async f() {
- const x = yield* [1];
+ const x = yield * [1];
}
}
@@ -26,7 +26,9 @@
class C5 {
async f() {
- const x = yield* (async function*() {
- yield 1;
- })();
+ const x =
+ yield *
+ (async function*() {
+ yield 1;
+ })();
}
}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -20,5 +20,5 @@
const o4 = {
async f() {
- const x = yield* [1];
+ const x = yield * [1];
}
};
@@ -26,7 +26,9 @@
const o5 = {
async f() {
- const x = yield* (async function*() {
- yield 1;
- })();
+ const x =
+ yield *
+ (async function*() {
+ yield 1;
+ })();
}
};
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -20,5 +20,5 @@
class C4 {
async f() {
- const x = yield* [1];
+ const x = yield * [1];
}
}
@@ -26,7 +26,9 @@
class C5 {
async f() {
- const x = yield* (async function*() {
- yield 1;
- })();
+ const x =
+ yield *
+ (async function*() {
+ yield 1;
+ })();
}
}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -20,5 +20,5 @@
const o4 = {
async f() {
- const x = yield* [1];
+ const x = yield * [1];
}
};
@@ -26,7 +26,9 @@
const o5 = {
async f() {
- const x = yield* (async function*() {
- yield 1;
- })();
+ const x =
+ yield *
+ (async function*() {
+ yield 1;
+ })();
}
};
../TypeScript/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteralError.ts: SyntaxError: ',' expected. (2:16)
1 | // error
> 2 | var bin1 = 0B1102110;
| ^
3 | var bin1 = 0b11023410;
4 |
5 | var obj1 = {
../TypeScript/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/invalidBinaryIntegerLiteralAndOctalIntegerLiteral.ts: SyntaxError: Binary digit expected. (2:15)
1 | // Error
> 2 | var binary = 0b21010;
| ^
3 | var binary1 = 0B21010;
4 | var octal = 0o81010;
5 | var octal = 0O91010;
../TypeScript/tests/cases/conformance/es6/binaryAndOctalIntegerLiteral/octalIntegerLiteralError.ts: SyntaxError: ',' expected. (2:18)
1 | // error
> 2 | var oct1 = 0O13334823;
| ^
3 | var oct2 = 0o34318592;
4 |
5 | var obj1 = {
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES5.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (14:6)
12 | [0]() { },
13 | [a]() { },
> 14 | [<any>true]() { },
| ^
15 | [`hello bye`]() { },
16 | [`hello ${a} bye`]() { }
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames10_ES6.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (14:6)
12 | [0]() { },
13 | [a]() { },
> 14 | [<any>true]() { },
| ^
15 | [`hello bye`]() { },
16 | [`hello ${a} bye`]() { }
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES5.ts: SyntaxError: Expression expected. (14:24)
12 | get [0]() { return 0; },
13 | set [a](v) { },
> 14 | get [<any>true]() { return 0; },
| ^
15 | set [`hello bye`](v) { },
16 | get [`hello ${a} bye`]() { return 0; }
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames11_ES6.ts: SyntaxError: Expression expected. (14:24)
12 | get [0]() { return 0; },
13 | set [a](v) { },
> 14 | get [<any>true]() { return 0; },
| ^
15 | set [`hello bye`](v) { },
16 | get [`hello ${a} bye`]() { return 0; }
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES5.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (14:13)
12 | [0]: number;
13 | [a]: number;
> 14 | static [<any>true]: number;
| ^
15 | [`hello bye`] = 0;
16 | static [`hello ${a} bye`] = 0
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames12_ES6.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (14:13)
12 | [0]: number;
13 | [a]: number;
> 14 | static [<any>true]: number;
| ^
15 | [`hello bye`] = 0;
16 | static [`hello ${a} bye`] = 0
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES5.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (14:13)
12 | [0]() { }
13 | [a]() { }
> 14 | static [<any>true]() { }
| ^
15 | [`hello bye`]() { }
16 | static [`hello ${a} bye`]() { }
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames13_ES6.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (14:13)
12 | [0]() { }
13 | [a]() { }
> 14 | static [<any>true]() { }
| ^
15 | [`hello bye`]() { }
16 | static [`hello ${a} bye`]() { }
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES5.ts: SyntaxError: Expression expected. (14:31)
12 | get [0]() { return 0; }
13 | set [a](v) { }
> 14 | static get [<any>true]() { return 0; }
| ^
15 | set [`hello bye`](v) { }
16 | get [`hello ${a} bye`]() { return 0; }
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames16_ES6.ts: SyntaxError: Expression expected. (14:31)
12 | get [0]() { return 0; }
13 | set [a](v) { }
> 14 | static get [<any>true]() { return 0; }
| ^
15 | set [`hello bye`](v) { }
16 | get [`hello ${a} bye`]() { return 0; }
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames35_ES5.ts: SyntaxError: ';' expected. (7:10)
5 | interface I<T> {
6 | bar(): string,
> 7 | foo<T>()(): void
| ^
8 | }
9 |
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames35_ES6.ts: SyntaxError: ';' expected. (7:10)
5 | interface I<T> {
6 | bar(): string,
> 7 | foo<T>()(): void
| ^
8 | }
9 |
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES5.ts: SyntaxError: JSX element 'String' has no corresponding closing tag. (8:17)
6 | get [delete id]() { }
7 | set [[0, 1]](v) { }
> 8 | static get [<String>""]() { }
| ^
9 | static set [id.toString()](v) { }
10 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames3_ES6.ts: SyntaxError: JSX element 'String' has no corresponding closing tag. (8:17)
6 | get [delete id]() { }
7 | set [[0, 1]](v) { }
> 8 | static get [<String>""]() { }
| ^
9 | static set [id.toString()](v) { }
10 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES5.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (14:6)
12 | [0]: 0,
13 | [a]: 1,
> 14 | [<any>true]: 0,
| ^
15 | [`hello bye`]: 0,
16 | [`hello ${a} bye`]: 0
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames4_ES6.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (14:6)
12 | [0]: 0,
13 | [a]: 1,
> 14 | [<any>true]: 0,
| ^
15 | [`hello bye`]: 0,
16 | [`hello ${a} bye`]: 0
17 | }
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES5.ts: SyntaxError: Property or signature expected. (4:2)
2 | // @declaration: true
3 | interface I {
> 4 | "" + ""(): void
| ^
5 | }
6 |
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES6.ts: SyntaxError: Property or signature expected. (4:2)
2 | // @declaration: true
3 | interface I {
> 4 | "" + ""(): void
| ^
5 | }
6 |
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit4_ES5.ts: SyntaxError: Property or signature expected. (4:2)
2 | // @declaration: true
3 | var v: {
> 4 | "" + ""(): void
| ^
5 | };
6 |
../TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit4_ES6.ts: SyntaxError: Property or signature expected. (4:2)
2 | // @declaration: true
3 | var v: {
> 4 | "" + ""(): void
| ^
5 | };
6 |
../TypeScript/tests/cases/conformance/es6/decorators/class/accessor/decoratorOnClassAccessor1.es6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass1.es6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function dec<T>(target: T): T
-dec
+dec;
export class C {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function dec<T>(target: T): T
-dec
+dec;
export default class C {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,4 +3,4 @@
declare function dec<T>(target: T): T
-dec
+dec;
export default class {}
../TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass5.es6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:165:18
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:164:14)
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function dec<T>(target: T): T
-dec
+dec;
export class C {
static x() {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function dec<T>(target: T): T
-dec
+dec;
export default class C {
static x() {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function dec<T>(target: T): T
-dec
+dec;
export default class {
static y = 1;
../TypeScript/tests/cases/conformance/es6/decorators/class/method/decoratorOnClassMethod1.es6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/es6/decorators/class/method/parameter/decoratorOnClassMethodParameter1.es6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printFunctionParams (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2715:22)
at parts.push.path.call.valuePath (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2547:9)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at printMethod (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2544:17)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:438:18)
../TypeScript/tests/cases/conformance/es6/decorators/class/property/decoratorOnClassProperty1.es6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts: SyntaxError: Expression expected. (15:11)
13 |
14 | function bar(): J {
> 15 | return <[number, number, number]>[1, 2, 3];
| ^
16 | }
17 | var [b3 = "string", b4, b5] = bar(); // Error
18 |
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringObjectBindingPatternAndAssignment3.ts: SyntaxError: ',' expected. (2:6)
1 | // Error
> 2 | var {h?} = { h?: 1 };
| ^
3 | var {i}: string | number = { i: 2 };
4 | var {i1}: string | number| {} = { i1: 2 };
5 | var { f2: {f21} = { f212: "string" } }: any = undefined;
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration2.ts: SyntaxError: ',' expected. (7:28)
5 | // If the declaration includes a type annotation, the parameter is of that type
6 | function a0([a, b, [[c]]]: [number, number, string[][]]) { }
> 7 | a0([1, "string", [["world"]]); // Error
| ^
8 | a0([1, 2, [["world"]], "string"]); // Error
9 |
10 |
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration6.ts: SyntaxError: ':' expected. (7:17)
5 |
6 | // Error
> 7 | function a({while}) { }
| ^
8 | function a1({public}) { }
9 | function a4([while, for, public]){ }
10 | function a5(...while) { }
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_1.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:13)
1 | //@target: ES5
> 2 | var { x } = <any>foo();
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_2.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:14)
1 | //@target: ES5
> 2 | var { x } = (<any>foo());
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_3.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:13)
1 | //@target: ES5
> 2 | var { x } = <any>(foo());
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_4.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:18)
1 | //@target: ES5
> 2 | var { x } = <any><any>foo();
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_5.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:13)
1 | //@target: ES5
> 2 | var { x } = <any>0;
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_6.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:13)
1 | //@target: ES5
> 2 | var { x } = <any>new Foo;
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/destructuringTypeAssertionsES5_7.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:18)
1 | //@target: ES5
> 2 | var { x } = <any><any>new Foo;
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers01.ts: SyntaxError: ':' expected. (2:12)
1 | 
> 2 | var { while } = { while: 1 }
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers02.ts: SyntaxError: Identifier expected. (2:13)
1 | 
> 2 | var { while: while } = { while: 1 }
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers03.ts: SyntaxError: ':' expected. (2:14)
1 | 
> 2 | var { "while" } = { while: 1 }
| ^
../TypeScript/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers04.ts: SyntaxError: Identifier expected. (2:15)
1 | 
> 2 | var { "while": while } = { while: 1 }
| ^
../TypeScript/tests/cases/conformance/es6/for-ofStatements/for-of29.ts: SyntaxError: Property or signature expected. (3:2)
1 | //@target: ES6
2 | var iterableWithOptionalIterator: {
> 3 | Symbol.iterator(): Iterator<string>
| ^
4 | };
5 |
6 | for (var v of iterableWithOptionalIterator) {
../TypeScript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration10_es6.ts: SyntaxError: ',' expected. (2:25)
1 | // @target: es6
> 2 | function * foo(a = yield => yield) {
| ^
3 | }
../TypeScript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration12_es6.ts: SyntaxError: '(' expected. (2:19)
1 | // @target: es6
> 2 | var v = function * yield() { }
| ^
../TypeScript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration5_es6.ts: SyntaxError: Parameter declaration expected. (2:13)
1 | // @target: es6
> 2 | function*foo(yield) {
| ^
3 | }
../TypeScript/tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments2_es6.ts: SyntaxError: Identifier expected. (2:11)
1 | // @target: es6
> 2 | var v = { *() { } }
| ^
../TypeScript/tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments3_es6.ts: SyntaxError: Identifier expected. (2:11)
1 | // @target: es6
> 2 | var v = { *{ } }
| ^
../TypeScript/tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments4_es6.ts: SyntaxError: Identifier expected. (2:12)
1 | // @target: es6
> 2 | var v = { * }
| ^
../TypeScript/tests/cases/conformance/es6/functionPropertyAssignments/FunctionPropertyAssignments6_es6.ts: SyntaxError: Identifier expected. (2:11)
1 | // @target: es6
> 2 | var v = { *<T>() { } }
| ^
../TypeScript/tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration4_es6.ts: SyntaxError: Identifier expected. (3:4)
1 | // @target: es6
2 | class C {
> 3 | *() { }
| ^
4 | }
../TypeScript/tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration5_es6.ts: SyntaxError: Identifier expected. (4:0)
2 | class C {
3 | *
> 4 | }
| ^
../TypeScript/tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration6_es6.ts: SyntaxError: '(' expected. (4:0)
2 | class C {
3 | *foo
> 4 | }
| ^
../TypeScript/tests/cases/conformance/es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts: SyntaxError: Invalid character. (5:11)
3 | foo() {
4 | // Make sure we don't think of *bar as the start of a generator method.
> 5 | if (a) # * bar;
| ^
6 | return bar;
7 | }
8 | }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
var decorator: ClassDecorator;
-decorator
+decorator;
export default class Foo {}
@@ -11,4 +11,4 @@
var decorator: ClassDecorator;
-decorator
+decorator;
export default class {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
var decorator: ClassDecorator;
-decorator
+decorator;
export default class Foo {}
@@ -11,4 +11,4 @@
var decorator: ClassDecorator;
-decorator
+decorator;
export default class {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
var decorator: ClassDecorator;
-decorator
+decorator;
export default class Foo {}
@@ -11,4 +11,4 @@
var decorator: ClassDecorator;
-decorator
+decorator;
export default class {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
var decorator: ClassDecorator;
-decorator
+decorator;
export default class Foo {}
@@ -11,4 +11,4 @@
var decorator: ClassDecorator;
-decorator
+decorator;
export default class {}
../TypeScript/tests/cases/conformance/es6/modules/exportsAndImportsWithUnderscores1.ts: SyntaxError: ',' expected. (9:4)
7 | "__": 20,
8 | "_": 10
> 9 | "___": 30
| ^
10 | }
11 |
12 | // @filename: m2.ts
../TypeScript/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts: SyntaxError: ':' expected. (3:19)
1 | // errors
2 | var y = {
> 3 | "stringLiteral",
| ^
4 | 42,
5 | get e,
6 | set f,
../TypeScript/tests/cases/conformance/es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts: SyntaxError: ':' expected. (10:9)
8 | var z = 10000;
9 | export var y = {
> 10 | m.x // error
| ^
11 | };
12 | }
13 |
../TypeScript/tests/cases/conformance/es6/Symbols/symbolDeclarationEmit5.ts: SyntaxError: Property or signature expected. (4:2)
2 | //@declaration: true
3 | interface I {
> 4 | Symbol.isConcatSpreadable(): string
| ^
5 | }
6 |
../TypeScript/tests/cases/conformance/es6/Symbols/symbolProperty20.ts: SyntaxError: Property or signature expected. (4:2)
2 | interface I {
3 | [Symbol.iterator]: (s: string) => string,
> 4 | Symbol.toStringTag(s: number): number
| ^
5 | }
6 |
7 | var i: I = {
../TypeScript/tests/cases/conformance/es6/Symbols/symbolProperty22.ts: SyntaxError: Property or signature expected. (3:2)
1 | //@target: ES6
2 | interface I<T, U> {
> 3 | Symbol.unscopables(x: T): U
| ^
4 | }
5 |
6 | declare function foo<T, U>(p1: T, p2: I<T, U>): U
../TypeScript/tests/cases/conformance/es6/Symbols/symbolProperty35.ts: SyntaxError: Property or signature expected. (3:2)
1 | //@target: ES6
2 | interface I1 {
> 3 | Symbol.toStringTag(): { x: string }
| ^
4 | }
5 | interface I2 {
6 | Symbol.toStringTag(): { x: number }
../TypeScript/tests/cases/conformance/es6/Symbols/symbolProperty8.ts: SyntaxError: Property or signature expected. (4:2)
2 | interface I {
3 | [Symbol.unscopables]: number,
> 4 | Symbol.toPrimitive()
| ^
5 | }
6 |
../TypeScript/tests/cases/conformance/es6/Symbols/symbolType1.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es6/Symbols/symbolType11.ts: SyntaxError: Expression expected. (8:3)
6 | s || s;
7 | s || 1;
> 8 | {} || s;
| ^
9 |
../TypeScript/tests/cases/conformance/es6/templates/TemplateExpression1.ts: SyntaxError: '}' expected. (1:18)
> 1 | var v = `foo ${ a
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringInFunctionParameterType.ts: SyntaxError: Parameter declaration expected. (1:12)
> 1 | function f(`hello`);
| ^
2 | function f(x: string);
3 | function f(x: string) {
4 | return x;
../TypeScript/tests/cases/conformance/es6/templates/templateStringInFunctionParameterTypeES6.ts: SyntaxError: Parameter declaration expected. (2:11)
1 | // @target: ES6
> 2 | function f(`hello`);
| ^
3 | function f(x: string);
4 | function f(x: string) {
5 | return x;
../TypeScript/tests/cases/conformance/es6/templates/templateStringInInstanceOf.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es6/templates/templateStringInInstanceOfES6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es6/templates/templateStringInModuleName.ts: SyntaxError: ';' expected. (1:9)
> 1 | declare module `M1` {
| ^
2 | }
3 |
4 | declare module `M${2}` {
../TypeScript/tests/cases/conformance/es6/templates/templateStringInModuleNameES6.ts: SyntaxError: ';' expected. (2:8)
1 | // @target: ES6
> 2 | declare module `M1` {
| ^
3 | }
4 |
5 | declare module `M${2}` {
../TypeScript/tests/cases/conformance/es6/templates/templateStringInObjectLiteral.ts: SyntaxError: Property assignment expected. (3:4)
1 | var x = {
2 | a: `abc${ 123 }def`,
> 3 | `b`: 321
| ^
4 | }
../TypeScript/tests/cases/conformance/es6/templates/templateStringInObjectLiteralES6.ts: SyntaxError: Property assignment expected. (4:4)
2 | var x = {
3 | a: `abc${ 123 }def`,
> 4 | `b`: 321
| ^
5 | }
../TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyName1.ts: SyntaxError: Property assignment expected. (2:4)
1 | var x = {
> 2 | `a`: 321
| ^
3 | }
../TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyName2.ts: SyntaxError: Property assignment expected. (2:4)
1 | var x = {
> 2 | `abc${ 123 }def${ 456 }ghi`: 321
| ^
3 | }
../TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyNameES6_1.ts: SyntaxError: Property assignment expected. (3:4)
1 | // @target: ES6
2 | var x = {
> 3 | `a`: 321
| ^
4 | }
../TypeScript/tests/cases/conformance/es6/templates/templateStringInPropertyNameES6_2.ts: SyntaxError: Property assignment expected. (3:4)
1 | // @target: ES6
2 | var x = {
> 3 | `abc${ 123 }def${ 456 }ghi`: 321
| ^
4 | }
../TypeScript/tests/cases/conformance/es6/templates/templateStringInTypeAssertion.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (1:10)
> 1 | var x = <any>`abc${ 123 }def`;
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringInTypeAssertionES6.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:9)
1 | // @target: ES6
> 2 | var x = <any>`abc${ 123 }def`;
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated1.ts: SyntaxError: Unterminated template literal. (2:1)
1 | 
> 2 | `
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated1_ES6.ts: SyntaxError: Unterminated template literal. (2:1)
1 | // @target: ES6
> 2 | `
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated2.ts: SyntaxError: Unterminated template literal. (2:3)
1 | 
> 2 | `\`
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated2_ES6.ts: SyntaxError: Unterminated template literal. (2:3)
1 | // @target: ES6
> 2 | `\`
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated3.ts: SyntaxError: Unterminated template literal. (2:3)
1 | 
> 2 | `\\
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated3_ES6.ts: SyntaxError: Unterminated template literal. (2:3)
1 | // @target: ES6
> 2 | `\\
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated4.ts: SyntaxError: Unterminated template literal. (2:5)
1 | 
> 2 | `\\\`
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated4_ES6.ts: SyntaxError: Unterminated template literal. (2:5)
1 | // @target: ES6
> 2 | `\\\`
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated5.ts: SyntaxError: Unterminated template literal. (2:7)
1 | 
> 2 | `\\\\\`
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringUnterminated5_ES6.ts: SyntaxError: Unterminated template literal. (2:7)
1 | // @target: ES6
> 2 | `\\\\\`
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedComments.ts: Error: Comment "closing comment" was not printed. Please report this error!
at astComments.forEach.comment (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:67:15)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:85:3)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:218:27)
at err (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:331:16)
at patterns.forEach.pattern (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:375:7)
at Array.forEach (native)
../TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedCommentsES6.ts: Error: Comment "closing comment" was not printed. Please report this error!
at astComments.forEach.comment (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:67:15)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:85:3)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:218:27)
at err (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:331:16)
at patterns.forEach.pattern (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:375:7)
at Array.forEach (native)
../TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedInstanceOf.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedInstanceOfES6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTypeAssertionOnAddition.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (1:17)
> 1 | var x = `abc${ <any>(10 + 10) }def`;
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedTypeAssertionOnAdditionES6.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:16)
1 | // @target: ES6
> 2 | var x = `abc${ <any>(10 + 10) }def`;
| ^
../TypeScript/tests/cases/conformance/es6/templates/templateStringWithEmbeddedYieldKeyword.ts: SyntaxError: '(' expected. (1:15)
> 1 | function* gen {
| ^
2 | // Once this is supported, yield *must* be parenthesized.
3 | var x = `abc${ yield 10 }def`;
4 | }
../TypeScript/tests/cases/conformance/es6/templates/templateStringWithOpenCommentInStringPortion.ts: Error: Comment location overlaps with node location
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:115:11)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at comments.forEach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:134:12)
at attachComments (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:51:14)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:81:23)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
../TypeScript/tests/cases/conformance/es6/templates/templateStringWithOpenCommentInStringPortionES6.ts: Error: Comment location overlaps with node location
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:115:11)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at comments.forEach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:134:12)
at attachComments (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:51:14)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:81:23)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts: SyntaxError: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. (5:18)
3 | // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp)
4 | // 1. Assert: 0 ≤ cp ≤ 0x10FFFF.
> 5 | var x = "\u{110000}";
| ^
6 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts: SyntaxError: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. (5:18)
3 | // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp)
4 | // 1. Assert: 0 ≤ cp ≤ 0x10FFFF.
> 5 | var x = "\u{110000}";
| ^
6 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts: SyntaxError: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. (3:20)
1 | // @target: es5
2 |
> 3 | var x = "\u{FFFFFFFF}";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts: SyntaxError: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. (3:20)
1 | // @target: es6
2 |
> 3 | var x = "\u{FFFFFFFF}";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts: SyntaxError: Hexadecimal digit expected. (4:12)
2 |
3 | // Shouldn't work, negatives are not allowed.
> 4 | var x = "\u{-DDDD}";
| ^
5 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts: SyntaxError: Hexadecimal digit expected. (4:12)
2 |
3 | // Shouldn't work, negatives are not allowed.
> 4 | var x = "\u{-DDDD}";
| ^
5 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es5
2 |
> 3 | var x = "\u{r}\u{n}\u{t}";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es6
2 |
> 3 | var x = "\u{r}\u{n}\u{t}";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es5
2 |
> 3 | var x = "\u{}";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es6
2 |
> 3 | var x = "\u{}";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es5
2 |
> 3 | var x = "\u{";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es6
2 |
> 3 | var x = "\u{";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts: SyntaxError: Unterminated Unicode escape sequence. (3:14)
1 | // @target: es5
2 |
> 3 | var x = "\u{67";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts: SyntaxError: Unterminated Unicode escape sequence. (3:14)
1 | // @target: es6
2 |
> 3 | var x = "\u{67";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts: SyntaxError: Unterminated Unicode escape sequence. (3:26)
1 | // @target: es5
2 |
> 3 | var x = "\u{00000000000067";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts: SyntaxError: Unterminated Unicode escape sequence. (3:26)
1 | // @target: es6
2 |
> 3 | var x = "\u{00000000000067";
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts: SyntaxError: Unterminated Unicode escape sequence. (3:26)
1 | // @target: es5
2 |
> 3 | var x = "\u{00000000000067
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts: SyntaxError: Unterminated Unicode escape sequence. (3:26)
1 | // @target: es6
2 |
> 3 | var x = "\u{00000000000067
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts: SyntaxError: Unterminated string literal. (3:27)
1 | // @target: es5
2 |
> 3 | var x = "\u{00000000000067}
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts: SyntaxError: Unterminated string literal. (3:27)
1 | // @target: es6
2 |
> 3 | var x = "\u{00000000000067}
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts: SyntaxError: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. (5:18)
3 | // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp)
4 | // 1. Assert: 0 ≤ cp ≤ 0x10FFFF.
> 5 | var x = `\u{110000}`;
| ^
6 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts: SyntaxError: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. (5:18)
3 | // ES6 Spec - 10.1.1 Static Semantics: UTF16Encoding (cp)
4 | // 1. Assert: 0 ≤ cp ≤ 0x10FFFF.
> 5 | var x = `\u{110000}`;
| ^
6 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts: SyntaxError: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. (3:20)
1 | // @target: es5
2 |
> 3 | var x = `\u{FFFFFFFF}`;
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts: SyntaxError: An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive. (3:20)
1 | // @target: es6
2 |
> 3 | var x = `\u{FFFFFFFF}`;
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts: SyntaxError: Hexadecimal digit expected. (4:12)
2 |
3 | // Shouldn't work, negatives are not allowed.
> 4 | var x = `\u{-DDDD}`;
| ^
5 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts: SyntaxError: Hexadecimal digit expected. (4:12)
2 |
3 | // Shouldn't work, negatives are not allowed.
> 4 | var x = `\u{-DDDD}`;
| ^
5 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es5
2 |
> 3 | var x = `\u{r}\u{n}\u{t}`;
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es6
2 |
> 3 | var x = `\u{r}\u{n}\u{t}`;
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es5
2 |
> 3 | var x = `\u{}`;
| ^
4 |
../TypeScript/tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts: SyntaxError: Hexadecimal digit expected. (3:12)
1 | // @target: es6
2 |
> 3 | var x = `\u{}`;
| ^
4 |
../TypeScript/tests/cases/conformance/es6/variableDeclarations/VariableDeclaration13_es6.ts: SyntaxError: Array element destructuring pattern expected. (6:4)
4 | // that would make it ambiguous with a `let` LexicalDeclaration whose first LexicalBinding was an ArrayBindingPattern.
5 | var let: any;
> 6 | let[0] = 100;
| ^
../TypeScript/tests/cases/conformance/es6/variableDeclarations/VariableDeclaration1_es6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck39.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:622:16
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:621:24)
../TypeScript/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck59.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1544:26
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1543:22)
../TypeScript/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck61.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:82:37)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
at /mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:622:16
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:621:24)
../TypeScript/tests/cases/conformance/es6/yieldExpressions/YieldExpression5_es6.ts: SyntaxError: Expression expected. (4:0)
2 | function* foo() {
3 | yield*
> 4 | }
| ^
../TypeScript/tests/cases/conformance/es6/yieldExpressions/YieldStarExpression2_es6.ts: SyntaxError: Expression expected. (2:7)
1 | // @target: es6
> 2 | yield *;
| ^
../TypeScript/tests/cases/conformance/es6/yieldExpressions/YieldStarExpression3_es6.ts: SyntaxError: Expression expected. (3:11)
1 | // @target: es6
2 | function *g() {
> 3 | yield *;
| ^
4 | }
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSCanBeAssigned1.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSCannotBeAssigned.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsReference.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsValue.ts: SyntaxError: Declaration or statement expected. (43:9)
41 |
42 | // object literals
> 43 | { a: 0 } **= value;
| ^
44 |
45 | // array literals
46 | ['', ''] **= value;
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS1.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS2.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS3.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationAssignmentWithPropertyAccessingOnLHS1.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator1.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitCompoundExponentiationOperator2.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator1.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator2.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator3.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperator4.ts: SyntaxError: JSX element 'number' has no corresponding closing tag. (13:7)
11 | 1 ** (<number>++temp) ** 3;
12 | 1 ** (<number>temp--) ** 3;
> 13 | 1 ** (<number>temp++) ** 3;
| ^
14 |
15 | (void --temp) ** 3;
16 | (void temp--) ** 3;
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTempalteString4ES6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString1.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString1ES6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString2.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString2ES6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString3.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/emitExponentiationOperatorInTemplateString3ES6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError1.ts: SyntaxError: An unary expression with the 'typeof' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. (9:7)
7 | // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without ()
8 | // TempateHead & TemplateTail are empty
> 9 | `${1 + typeof t1 ** t2 ** t1}`;
| ^
10 | `${-t1 ** t2 - t1}`;
11 | `${-++t1 ** t2 - t1}`;
12 | `${-t1++ ** t2 - t1}`;
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError2.ts: SyntaxError: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. (9:9)
7 | // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without ()
8 | // With templateHead
> 9 | `hello ${-t1 ** t2 - t1}`;
| ^
10 | `hello ${-++t1 ** t2 - t1}`;
11 | `hello ${-t1++ ** t2 - t1}`;
12 | `hello ${!t1 ** t2 ** --t1 }`;
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorInTemplateStringWithSyntaxError3.ts: SyntaxError: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. (9:3)
7 | // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without ()
8 | // With TemplateTail
> 9 | `${-t1 ** t2 - t1} world`;
| ^
10 | `${-++t1 ** t2 - t1} world`;
11 | `${-t1++ ** t2 - t1} world`;
12 | `${!t1 ** t2 ** --t1 } world`;
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError1.ts: SyntaxError: An unary expression with the '-' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. (4:0)
2 |
3 | // Error: early syntax error using ES7 SimpleUnaryExpression on left-hand side without ()
> 4 | -1 ** 2;
| ^
5 | +1 ** 2
6 | 1 ** -2 ** 3;
7 | 1 ** -2 ** -3;
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorSyntaxError2.ts: SyntaxError: An unary expression with the 'delete' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses. (6:0)
4 | var temp: any;
5 |
> 6 | delete --temp ** 3;
| ^
7 | delete ++temp ** 3;
8 | delete temp-- ** 3;
9 | delete temp++ ** 3;
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithAnyAndNumber.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithEnum.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithEnumUnion.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithInvalidOperands.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithInvalidSimpleUnaryExpressionOperands.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithNew.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithNullValueAndInvalidOperands.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithNullValueAndValidOperands.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithOnlyNullValueOrUndefinedValue.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTemplateStringInvalid.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTemplateStringInvalidES6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithTypeParameter.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithUndefinedValueAndInvalidOperands.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/exponentiationOperator/exponentiationOperatorWithUndefinedValueAndValidOperands.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/es7/trailingCommasInFunctionParametersAndArguments.ts: SyntaxError: '}' expected. (20:20)
18 | // Works for constructors too
19 | class X {
> 20 | constructor(a,) { }
| ^
21 | // See trailingCommasInGetter.ts
22 | set x(value,) { }
23 | }
../TypeScript/tests/cases/conformance/es7/trailingCommasInGetter.ts: SyntaxError: Parameter declaration expected. (2:10)
1 | class X {
> 2 | get x(,) { return 0; }
| ^
3 | }
4 |
../TypeScript/tests/cases/conformance/expressions/asOperator/asOperator4.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (10:1)
8 |
9 | // These should emit identically
> 10 | <any>foo;
| ^
11 | (foo as any);
12 |
../TypeScript/tests/cases/conformance/expressions/assignmentOperator/assignmentLHSIsValue.ts: SyntaxError: Declaration or statement expected. (35:8)
33 |
34 | // object literals
> 35 | { a: 0} = value;
| ^
36 |
37 | // array literals
38 | ['', ''] = value;
../TypeScript/tests/cases/conformance/expressions/assignmentOperator/compoundAssignmentLHSIsValue.ts: SyntaxError: Declaration or statement expected. (60:8)
58 |
59 | // object literals
> 60 | { a: 0} *= value;
| ^
61 | { a: 0} += value;
62 |
63 | // array literals
../TypeScript/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.ts: SyntaxError: ',' expected. (28:18)
26 | var b5: { fn(x: string, y: number): string };
27 |
> 28 | var a6: { fn<T, U in T>(x: T, y: U): T };
| ^
29 | var b6: { fn(x: Base, y: C): Base };
30 |
31 | // operator <
../TypeScript/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.ts: SyntaxError: ',' expected. (28:20)
26 | var b5: { new (x: string, y: number): string };
27 |
> 28 | var a6: { new <T, U in T>(x: T, y: U): T };
| ^
29 | var b6: { new (x: Base, y: C): Base };
30 |
31 | // operator <
../TypeScript/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithNumericLiteral.ts: SyntaxError: Identifier expected. (10:2)
8 |
9 | // operator <
> 10 | x < 0;
| ^
11 | x < <number>0;
12 | x < <BrandedNum>0;
13 |
../TypeScript/tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithTypeParameter.ts: Error: Comment location overlaps with node location
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:115:11)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at comments.forEach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:134:12)
at attachComments (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:51:14)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:81:23)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:217:25)
../TypeScript/tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithAny.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithInvalidOperands.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithInvalidStaticToString.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithLHSIsObject.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithLHSIsTypeParameter.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/binaryOperators/instanceofOperator/instanceofOperatorWithRHSIsSubtypeOfFunction.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/binaryOperators/logicalAndOperator/logicalAndOperatorWithTypeParameters.ts: Error: Comment location overlaps with node location
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:115:11)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at comments.forEach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:134:12)
at attachComments (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:51:14)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:81:23)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:217:25)
../TypeScript/tests/cases/conformance/expressions/binaryOperators/logicalOrOperator/logicalOrOperatorWithTypeParameters.ts: Error: Comment location overlaps with node location
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:115:11)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at comments.forEach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:134:12)
at attachComments (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:51:14)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:81:23)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/bin/prettier.js:217:25)
../TypeScript/tests/cases/conformance/expressions/commaOperator/commaOperatorWithoutOperand.ts: SyntaxError: Expression expected. (9:6)
7 | // Expect to have compiler errors
8 | // Missing the second operand
> 9 | (ANY, );
| ^
10 | (BOOLEAN, );
11 | (NUMBER, );
12 | (STRING, );
../TypeScript/tests/cases/conformance/expressions/contextualTyping/generatedContextualTyping.ts: SyntaxError: Expression expected. (212:11)
210 | module x203 { export var t: (s: Base[]) => any = n => { var n: Base[]; return null; }; }
211 | module x204 { export var t: Genric<Base> = { func: n => { return [d1, d2]; } }; }
> 212 | var x206 = <() => Base[]>function() { return [d1, d2] };
| ^
213 | var x207 = <() => Base[]>function named() { return [d1, d2] };
214 | var x209 = <{ (): Base[]; }>function() { return [d1, d2] };
215 | var x210 = <{ (): Base[]; }>function named() { return [d1, d2] };
../TypeScript/tests/cases/conformance/expressions/elementAccess/letIdentifierInElementAccess01.ts: SyntaxError: Array element destructuring pattern expected. (2:4)
1 | var let: any = {};
> 2 | let[0] = 100;
| ^
3 |
../TypeScript/tests/cases/conformance/expressions/functionCalls/callWithSpread.ts: SyntaxError: ',' expected. (40:17)
38 |
39 | class C {
> 40 | constructor(x: number, y: number, ...z: string[]) {
| ^
41 | this.foo(x, y);
42 | this.foo(x, y, ...z);
43 | }
../TypeScript/tests/cases/conformance/expressions/functionCalls/callWithSpreadES6.ts: SyntaxError: ',' expected. (34:17)
32 |
33 | class C {
> 34 | constructor(x: number, y: number, ...z: string[]) {
| ^
35 | this.foo(x, y);
36 | this.foo(x, y, ...z);
37 | }
../TypeScript/tests/cases/conformance/expressions/functionCalls/overloadResolutionConstructors.ts: SyntaxError: ',' expected. (71:9)
69 | // Generic overloads with constraints called with type arguments that satisfy the constraints
70 | interface fn4 {
> 71 | new <T in string, U in number>(n: T, m: U),
| ^
72 | new <T in number, U in string>(n: T, m: U)
73 | }
74 | var fn4: fn4;
../TypeScript/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts: SyntaxError: Expression expected. (87:30)
85 | var generic1 = <T>(n: T) => [n];
86 | var generic1: { <T>(n: T): T[] }; // Incorrect error, Bug 829597
> 87 | var generic2 = <T>(n: T) => { return [n]; };
| ^
88 | var generic2: { <T>(n: T): T[] };
89 |
90 | // <Identifier> ((ParamList) => { ... } ) is a type assertion to an arrow function
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -131,22 +131,28 @@
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "y2",
+ "type": "TSParenthesizedType",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "y2",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSNumberKeyword"
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSNumberKeyword"
+ "type": "TSVoidKeyword"
}
}
}
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSVoidKeyword"
- }
}
}
Index:
===================================================================
---
+++
@@ -1,14 +1,14 @@
-declare function foo(x: (y: string) => (y2: number) => void);
+declare function foo(x: (y: string) => (y2: number) => void)
// Contextually type the parameter even if there is a return annotation
-foo((y): (y2: number) => void => {
- var z = y.charAt(0); // Should be string
- return null;
+foo((y): ((y2: number) => void) => {
+ var z = y.charAt(0); // Should be string
+ return null;
});
foo((y: string) => {
- return y2 => {
\ No newline at end of file
- var z = y2.toFixed(); // Should be string
- return 0;
- };
-});
+ return y2 => {
+ var z = y2.toFixed(); // Should be string
+ return 0;
+ };
+});
../TypeScript/tests/cases/conformance/expressions/newOperator/newOperatorErrorCases.ts: SyntaxError: ',' expected. (27:15)
25 |
26 | // Construct expression with no parentheses for construct signature with > 0 parameters
> 27 | var b = new C0 32, ''; // Parse error
| ^
28 |
29 | // Generic construct expression with no parentheses
30 | var c1 = new T;
../TypeScript/tests/cases/conformance/expressions/operators/incrementAndDecrement.ts: SyntaxError: ';' expected. (8:4)
6 |
7 | // Assign to expression++
> 8 | x++ = 4; // Error
| ^
9 |
10 | // Assign to expression--
11 | x-- = 5; // Error
../TypeScript/tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (128:20)
126 |
127 | // Bracket notation property access using value of type 'any' on type with numeric index signature and string index signature
> 128 | var xx = bothIndex[<any>null];
| ^
129 | var xx: B;
130 |
131 | // Bracket notation property access using string value on type with numeric index signature and string index signature
../TypeScript/tests/cases/conformance/expressions/superCalls/errorSuperCalls.ts: SyntaxError: 'super' must be followed by an argument list or member access. (46:13)
44 | //super call with type arguments
45 | constructor() {
> 46 | super<string>();
| ^
47 | super();
48 | }
49 | }
../TypeScript/tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions01.ts: SyntaxError: Expression expected. (3:8)
1 | // @declaration: true
2 |
> 3 | let x = <{a: number; a: number}>{};
| ^
../TypeScript/tests/cases/conformance/expressions/typeAssertions/typeAssertions.ts: SyntaxError: '}' expected. (15:12)
13 |
14 | class SomeBase {
> 15 | private p;
| ^
16 | }
17 | class SomeDerived extends SomeBase {
18 | private x;
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts: SyntaxError: '{' or ';' expected. (18:56)
16 | }
17 |
> 18 | function hasTypeGuardTypeInsideTypeGuardType(x): x is x is A {
| ^
19 | return true;
20 | }
21 |
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThis.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2169:14)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1697:21)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2169:14)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1697:21)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormInstanceOf.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormInstanceOfOnInterface.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2169:14)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1697:21)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2169:14)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1697:21)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardsWithAny.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOf.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOfByConstructorSignature.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/typeGuards/TypeGuardWithArrayUnion.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typePredicateOnVariableDeclaration01.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2169:14)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1697:21)
../TypeScript/tests/cases/conformance/expressions/typeGuards/typePredicateOnVariableDeclaration02.ts: SyntaxError: '=' expected. (3:9)
1 | // @declaration: true
2 |
> 3 | var y: z is number;
| ^
../TypeScript/tests/cases/conformance/expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorInvalidOperations.ts: SyntaxError: ',' expected. (5:9)
3 |
4 | // operand before ~
> 5 | var a = q~; //expect error
| ^
6 |
7 | // multiple operands after ~
8 | var mul = ~[1, 2, "abc"], ""; //expect error
../TypeScript/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherTypeInvalidOperations.ts: SyntaxError: ';' expected. (67:6)
65 | ANY2--;
66 |
> 67 | --ANY1--;
| ^
68 | --ANY1++;
69 | ++ANY1--;
70 | --ANY2[0]--;
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -138,11 +138,11 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": true,
+ "argument": {
"type": "MemberExpression",
"object": {
@@ -155,17 +155,17 @@
},
"computed": true
+ }
+ },
+ "right": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "ENUM"
},
- "right": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "ENUM"
- },
- "property": {
- "type": "Identifier",
- "name": "B"
- },
- "computed": false
- }
+ "property": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "computed": false
}
}
@@ -184,23 +184,23 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "ENUM"
- },
- "property": {
- "type": "Identifier",
- "name": "A"
- },
- "computed": false
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "ENUM"
},
- "right": {
+ "property": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "computed": false
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": false,
+ "argument": {
"type": "MemberExpression",
"object": {
Index:
===================================================================
---
+++
@@ -1,6 +1,6 @@
// -- operator on enum type
-enum ENUM { };
-enum ENUM1 { A, B, "" };
+enum ENUM {}
+enum ENUM1 { A, B, "" }
// enum type var
@@ -12,6 +12,6 @@
// enum type expressions
-var ResultIsNumber5 = --(ENUM["A"] + ENUM.B);
-var ResultIsNumber6 = (ENUM.A + ENUM["B"])--;
+var ResultIsNumber5 = --ENUM["A"] + ENUM.B;
+var ResultIsNumber6 = ENUM.A + ENUM["B"]--;
// miss assignment operator
@@ -20,3 +20,3 @@
ENUM--;
-ENUM1--;
\ No newline at end of file
+ENUM1--;
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -593,18 +593,18 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": true,
+ "argument": {
"type": "Identifier",
"name": "NUMBER"
- },
- "right": {
- "type": "Identifier",
- "name": "NUMBER"
}
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "NUMBER"
}
}
@@ -683,17 +683,17 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Identifier",
+ "name": "NUMBER"
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": false,
+ "argument": {
"type": "Identifier",
"name": "NUMBER"
- },
- "right": {
- "type": "Identifier",
- "name": "NUMBER"
}
}
Index:
===================================================================
---
+++
@@ -3,12 +3,16 @@
var NUMBER1: number[] = [1, 2];
-function foo(): number { return 1; }
+function foo(): number {
+ return 1;
+}
class A {
- public a: number;
- static foo() { return 1; }
+ public a: number;
+ static foo() {
+ return 1;
+ }
}
-module M {
- export var n: number;
+namespace M {
+ export var n: number;
}
@@ -21,19 +25,29 @@
// number type literal
var ResultIsNumber3 = --1;
-var ResultIsNumber4 = --{ x: 1, y: 2};
-var ResultIsNumber5 = --{ x: 1, y: (n: number) => { return n; } };
+var ResultIsNumber4 = --{ x: 1, y: 2 };
+var ResultIsNumber5 = --{
+ x: 1,
+ y: (n: number) => {
+ return n;
+ }
+};
var ResultIsNumber6 = 1--;
var ResultIsNumber7 = { x: 1, y: 2 }--;
-var ResultIsNumber8 = { x: 1, y: (n: number) => { return n; } }--;
+var ResultIsNumber8 = {
+ x: 1,
+ y: (n: number) => {
+ return n;
+ }
+}--;
// number type expressions
var ResultIsNumber9 = --foo();
var ResultIsNumber10 = --A.foo();
-var ResultIsNumber11 = --(NUMBER + NUMBER);
+var ResultIsNumber11 = --NUMBER + NUMBER;
var ResultIsNumber12 = foo()--;
var ResultIsNumber13 = A.foo()--;
-var ResultIsNumber14 = (NUMBER + NUMBER)--;
+var ResultIsNumber14 = NUMBER + NUMBER--;
// miss assignment operator
@@ -44,3 +58,3 @@
1--;
NUMBER1--;
-foo()--;
\ No newline at end of file
+foo()--;
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -727,18 +727,18 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": true,
+ "argument": {
"type": "Identifier",
"name": "STRING"
- },
- "right": {
- "type": "Identifier",
- "name": "STRING"
}
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "STRING"
}
}
@@ -907,17 +907,17 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Identifier",
+ "name": "STRING"
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": false,
+ "argument": {
"type": "Identifier",
"name": "STRING"
- },
- "right": {
- "type": "Identifier",
- "name": "STRING"
}
}
Index:
===================================================================
---
+++
@@ -3,12 +3,16 @@
var STRING1: string[] = ["", ""];
-function foo(): string { return ""; }
+function foo(): string {
+ return "";
+}
class A {
- public a: string;
- static foo() { return ""; }
+ public a: string;
+ static foo() {
+ return "";
+ }
}
-module M {
- export var n: string;
+namespace M {
+ export var n: string;
}
@@ -25,9 +29,19 @@
var ResultIsNumber5 = --"";
var ResultIsNumber6 = --{ x: "", y: "" };
-var ResultIsNumber7 = --{ x: "", y: (s: string) => { return s; } };
+var ResultIsNumber7 = --{
+ x: "",
+ y: (s: string) => {
+ return s;
+ }
+};
var ResultIsNumber8 = ""--;
var ResultIsNumber9 = { x: "", y: "" }--;
-var ResultIsNumber10 = { x: "", y: (s: string) => { return s; } }--;
+var ResultIsNumber10 = {
+ x: "",
+ y: (s: string) => {
+ return s;
+ }
+}--;
// string type expressions
@@ -37,5 +51,5 @@
var ResultIsNumber14 = --foo();
var ResultIsNumber15 = --A.foo();
-var ResultIsNumber16 = --(STRING + STRING);
+var ResultIsNumber16 = --STRING + STRING;
var ResultIsNumber17 = objA.a--;
@@ -44,5 +58,5 @@
var ResultIsNumber20 = foo()--;
var ResultIsNumber21 = A.foo()--;
-var ResultIsNumber22 = (STRING + STRING)--;
+var ResultIsNumber22 = STRING + STRING--;
// miss assignment operators
@@ -63,3 +77,3 @@
objA.a--;
M.n--;
-objA.a--, M.n--;
\ No newline at end of file
+objA.a--, M.n--;
../TypeScript/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorInvalidOperations.ts: SyntaxError: ',' expected. (5:19)
3 |
4 | // operand before delete operator
> 5 | var BOOLEAN1 = ANY delete ; //expect error
| ^
6 |
7 | // miss an operand
8 | var BOOLEAN2 = delete ;
../TypeScript/tests/cases/conformance/expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherTypeInvalidOperations.ts: SyntaxError: ';' expected. (67:6)
65 | ANY2++;
66 |
> 67 | ++ANY1++;
| ^
68 | ++ANY2++;
69 | ++ANY2[0]++;
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -138,11 +138,11 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": true,
+ "argument": {
"type": "MemberExpression",
"object": {
@@ -155,17 +155,17 @@
},
"computed": true
+ }
+ },
+ "right": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "ENUM"
},
- "right": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "ENUM"
- },
- "property": {
- "type": "Literal",
- "value": 2
- },
- "computed": true
- }
+ "property": {
+ "type": "Literal",
+ "value": 2
+ },
+ "computed": true
}
}
@@ -184,23 +184,23 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "ENUM"
- },
- "property": {
- "type": "Literal",
- "value": 1
- },
- "computed": true
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "ENUM"
},
- "right": {
+ "property": {
+ "type": "Literal",
+ "value": 1
+ },
+ "computed": true
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": false,
+ "argument": {
"type": "MemberExpression",
"object": {
Index:
===================================================================
---
+++
@@ -1,6 +1,6 @@
// ++ operator on enum type
-enum ENUM { };
-enum ENUM1 { A, B, "" };
+enum ENUM {}
+enum ENUM1 { A, B, "" }
// enum type var
@@ -12,6 +12,6 @@
// enum type expressions
-var ResultIsNumber5 = ++(ENUM[1] + ENUM[2]);
-var ResultIsNumber6 = (ENUM[1] + ENUM[2])++;
+var ResultIsNumber5 = ++ENUM[1] + ENUM[2];
+var ResultIsNumber6 = ENUM[1] + ENUM[2]++;
// miss assignment operator
@@ -20,3 +20,3 @@
ENUM++;
-ENUM1++;
\ No newline at end of file
+ENUM1++;
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -593,18 +593,18 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": true,
+ "argument": {
"type": "Identifier",
"name": "NUMBER"
- },
- "right": {
- "type": "Identifier",
- "name": "NUMBER"
}
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "NUMBER"
}
}
@@ -683,17 +683,17 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Identifier",
+ "name": "NUMBER"
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": false,
+ "argument": {
"type": "Identifier",
"name": "NUMBER"
- },
- "right": {
- "type": "Identifier",
- "name": "NUMBER"
}
}
Index:
===================================================================
---
+++
@@ -3,12 +3,16 @@
var NUMBER1: number[] = [1, 2];
-function foo(): number { return 1; }
+function foo(): number {
+ return 1;
+}
class A {
- public a: number;
- static foo() { return 1; }
+ public a: number;
+ static foo() {
+ return 1;
+ }
}
-module M {
- export var n: number;
+namespace M {
+ export var n: number;
}
@@ -21,19 +25,29 @@
// number type literal
var ResultIsNumber3 = ++1;
-var ResultIsNumber4 = ++{ x: 1, y: 2};
-var ResultIsNumber5 = ++{ x: 1, y: (n: number) => { return n; } };
+var ResultIsNumber4 = ++{ x: 1, y: 2 };
+var ResultIsNumber5 = ++{
+ x: 1,
+ y: (n: number) => {
+ return n;
+ }
+};
var ResultIsNumber6 = 1++;
var ResultIsNumber7 = { x: 1, y: 2 }++;
-var ResultIsNumber8 = { x: 1, y: (n: number) => { return n; } }++;
+var ResultIsNumber8 = {
+ x: 1,
+ y: (n: number) => {
+ return n;
+ }
+}++;
// number type expressions
var ResultIsNumber9 = ++foo();
var ResultIsNumber10 = ++A.foo();
-var ResultIsNumber11 = ++(NUMBER + NUMBER);
+var ResultIsNumber11 = ++NUMBER + NUMBER;
var ResultIsNumber12 = foo()++;
var ResultIsNumber13 = A.foo()++;
-var ResultIsNumber14 = (NUMBER + NUMBER)++;
+var ResultIsNumber14 = NUMBER + NUMBER++;
// miss assignment operator
@@ -44,3 +58,3 @@
1++;
NUMBER1++;
-foo()++;
\ No newline at end of file
+foo()++;
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -727,18 +727,18 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": true,
+ "argument": {
"type": "Identifier",
"name": "STRING"
- },
- "right": {
- "type": "Identifier",
- "name": "STRING"
}
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "STRING"
}
}
@@ -907,17 +907,17 @@
},
"init": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Identifier",
+ "name": "STRING"
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": false,
+ "argument": {
"type": "Identifier",
"name": "STRING"
- },
- "right": {
- "type": "Identifier",
- "name": "STRING"
}
}
Index:
===================================================================
---
+++
@@ -3,12 +3,16 @@
var STRING1: string[] = ["", ""];
-function foo(): string { return ""; }
+function foo(): string {
+ return "";
+}
class A {
- public a: string;
- static foo() { return ""; }
+ public a: string;
+ static foo() {
+ return "";
+ }
}
-module M {
- export var n: string;
+namespace M {
+ export var n: string;
}
@@ -25,9 +29,19 @@
var ResultIsNumber5 = ++"";
var ResultIsNumber6 = ++{ x: "", y: "" };
-var ResultIsNumber7 = ++{ x: "", y: (s: string) => { return s; } };
+var ResultIsNumber7 = ++{
+ x: "",
+ y: (s: string) => {
+ return s;
+ }
+};
var ResultIsNumber8 = ""++;
var ResultIsNumber9 = { x: "", y: "" }++;
-var ResultIsNumber10 = { x: "", y: (s: string) => { return s; } }++;
+var ResultIsNumber10 = {
+ x: "",
+ y: (s: string) => {
+ return s;
+ }
+}++;
// string type expressions
@@ -37,5 +51,5 @@
var ResultIsNumber14 = ++foo();
var ResultIsNumber15 = ++A.foo();
-var ResultIsNumber16 = ++(STRING + STRING);
+var ResultIsNumber16 = ++STRING + STRING;
var ResultIsNumber17 = objA.a++;
@@ -44,5 +58,5 @@
var ResultIsNumber20 = foo()++;
var ResultIsNumber21 = A.foo()++;
-var ResultIsNumber22 = (STRING + STRING)++;
+var ResultIsNumber22 = STRING + STRING++;
// miss assignment operators
@@ -63,3 +77,3 @@
objA.a++;
M.n++;
-objA.a++, M.n++;
\ No newline at end of file
+objA.a++, M.n++;
../TypeScript/tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorInvalidOperations.ts: SyntaxError: Expression expected. (11:15)
9 |
10 | // miss an operand
> 11 | var BOOLEAN3 =!;
| ^
../TypeScript/tests/cases/conformance/expressions/unaryOperators/negateOperator/negateOperatorInvalidOperations.ts: SyntaxError: Expression expected. (4:14)
2 |
3 | // operand before -
> 4 | var NUMBER1 = var NUMBER-; //expect error
| ^
5 |
6 | // invalid expressions
7 | var NUMBER2 = -(null - undefined);
../TypeScript/tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorInvalidOperations.ts: SyntaxError: Expression expected. (5:16)
3 |
4 | // operand before +
> 5 | var result1 = b+; //expect error
| ^
6 |
7 | // miss an operand
8 | var result2 =+;
../TypeScript/tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts: SyntaxError: ',' expected. (4:14)
2 |
3 | // opreand before typeof
> 4 | var ANY = ANY typeof ; //expect error
| ^
5 |
6 | // miss an operand
7 | var ANY1 = typeof ;
../TypeScript/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorInvalidOperations.ts: SyntaxError: ',' expected. (4:14)
2 |
3 | // operand before void
> 4 | var ANY = ANY void ; //expect error
| ^
5 |
6 | // miss an operand
7 | var ANY1 = void ;
../TypeScript/tests/cases/conformance/externalModules/amdImportNotAsPrimaryExpression.ts: SyntaxError: Expression expected. (28:16)
26 | import f = foo.M1;
27 | var i: f.I2;
> 28 | var x: foo.C1 = <{m1: number}>{};
| ^
29 | var y: typeof foo.C1.s1 = false;
30 | var z: foo.M1.I2;
31 | var e: number = <foo.E1>0;
../TypeScript/tests/cases/conformance/externalModules/commonJSImportNotAsPrimaryExpression.ts: SyntaxError: Expression expected. (28:16)
26 | import f = foo.M1;
27 | var i: f.I2;
> 28 | var x: foo.C1 = <{m1: number}>{};
| ^
29 | var y: typeof foo.C1.s1 = false;
30 | var z: foo.M1.I2;
31 | var e: number = <foo.E1>0;
../TypeScript/tests/cases/conformance/externalModules/exportAssignNonIdentifier.ts: SyntaxError: Expression expected. (18:13)
16 |
17 | // @Filename: foo6.ts
> 18 | export = void; // Error, void operator requires an argument
| ^
19 |
20 | // @Filename: foo7.ts
21 | export = Date || String; // Ok
../TypeScript/tests/cases/conformance/externalModules/exportNonInitializedVariablesAMD.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/conformance/externalModules/exportNonInitializedVariablesCommonJS.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/conformance/externalModules/exportNonInitializedVariablesSystem.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/conformance/externalModules/exportNonInitializedVariablesUMD.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/conformance/externalModules/invalidSyntaxNamespaceImportWithAMD.ts: SyntaxError: 'as' expected. (6:9)
4 |
5 | // @filename: 1.ts
> 6 | import * from Zero from "./0"
| ^
../TypeScript/tests/cases/conformance/externalModules/invalidSyntaxNamespaceImportWithCommonjs.ts: SyntaxError: 'as' expected. (6:9)
4 |
5 | // @filename: 1.ts
> 6 | import * from Zero from "./0"
| ^
../TypeScript/tests/cases/conformance/externalModules/invalidSyntaxNamespaceImportWithSystem.ts: SyntaxError: 'as' expected. (6:9)
4 |
5 | // @filename: 1.ts
> 6 | import * from Zero from "./0"
| ^
../TypeScript/tests/cases/conformance/externalModules/umd-errors.ts: SyntaxError: Variable declaration expected. (19:6)
17 | declare export as namespace oo2;
18 | public export as namespace oo3;
> 19 | const export as namespace oo4;
| ^
20 |
21 | // @filename: err4.d.ts
22 | // Illegal, must be at top-level
../TypeScript/tests/cases/conformance/fixSignatureCaching.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/interfaces/declarationMerging/twoGenericInterfacesWithDifferentConstraints.ts: SyntaxError: ',' expected. (1:14)
> 1 | interface A<T in Date> {
| ^
2 | x: T
3 | }
4 |
../TypeScript/tests/cases/conformance/interfaces/interfaceDeclarations/interfacesWithPredefinedTypesAsNames.ts: SyntaxError: ';' expected. (5:10)
3 | interface string { }
4 | interface boolean { }
> 5 | interface void {}
| ^
../TypeScript/tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyOfEveryType.ts: SyntaxError: JSX element 'Foo' has no corresponding closing tag. (36:8)
34 | h: (x: number) => 1,
35 | i: <T>(x: T) => x,
> 36 | j: <Foo>null,
| ^
37 | k: new C(),
38 | l: f1,
39 | m: M,
../TypeScript/tests/cases/conformance/interfaces/interfacesExtendingClasses/interfaceExtendingClass2.ts: SyntaxError: Property or signature expected. (15:12)
13 | a: {
14 | toString: () => {
> 15 | return 1;
| ^
16 | };
17 | }
../TypeScript/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.ts: SyntaxError: ',' expected. (15:31)
13 | export var Origin3d: Point3d = { x: 0, y: 0, z: 0 };
14 |
> 15 | export interface Line<TPoint in Point> {
| ^
16 | new (start: TPoint, end: TPoint),
17 | start: TPoint,
18 | end: TPoint
../TypeScript/tests/cases/conformance/internalModules/exportDeclarations/ExportInterfaceWithInaccessibleTypeInTypeParameterConstraint.ts: SyntaxError: ',' expected. (15:31)
13 | export var Origin3d: Point3d = { x: 0, y: 0, z: 0 };
14 |
> 15 | export interface Line<TPoint in Point> {
| ^
16 | new (start: TPoint, end: TPoint),
17 |
18 | start: TPoint,
../TypeScript/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/conformance/moduleResolution/packageJsonMain.ts: SyntaxError: ';' expected. (6:8)
4 |
5 | // @filename: /node_modules/foo/package.json
> 6 | { "main": "oof" }
| ^
7 |
8 | // @filename: /node_modules/foo/oof.js
9 | module.exports = 0;
../TypeScript/tests/cases/conformance/moduleResolution/packageJsonMain_isNonRecursive.ts: SyntaxError: ';' expected. (6:8)
4 |
5 | // @filename: /node_modules/foo/package.json
> 6 | { "main": "oof" }
| ^
7 |
8 | // @filename: /node_modules/foo/oof/package.json
9 | { "main": "ofo" }
../TypeScript/tests/cases/conformance/moduleResolution/untypedModuleImport.ts: SyntaxError: ';' expected. (7:5)
5 |
6 | // @filename: /node_modules/foo/index.js
> 7 | This file is not processed.
| ^
8 |
9 | // @filename: /a.ts
10 | import * as foo from "foo";
../TypeScript/tests/cases/conformance/moduleResolution/untypedModuleImport_noImplicitAny.ts: SyntaxError: ';' expected. (7:5)
5 |
6 | // @filename: /node_modules/foo/index.js
> 7 | This file is not processed.
| ^
8 |
9 | // @filename: /a.ts
10 | import * as foo from "foo";
../TypeScript/tests/cases/conformance/moduleResolution/untypedModuleImport_noLocalImports.ts: SyntaxError: ';' expected. (6:5)
4 |
5 | // @filename: /foo.js
> 6 | This file is not processed.
| ^
7 |
8 | // @filename: /a.ts
9 | import * as foo from "./foo";
../TypeScript/tests/cases/conformance/moduleResolution/untypedModuleImport_vsAmbient.ts: SyntaxError: ';' expected. (6:5)
4 |
5 | // @filename: /node_modules/foo/index.js
> 6 | This file is not processed.
| ^
7 |
8 | // @filename: /declarations.d.ts
9 | declare module "foo" {
../TypeScript/tests/cases/conformance/moduleResolution/untypedModuleImport_withAugmentation.ts: SyntaxError: ';' expected. (6:5)
4 |
5 | // @filename: /node_modules/foo/index.js
> 6 | This file is not processed.
| ^
7 |
8 | // @filename: /a.ts
9 | declare module "foo" {
../TypeScript/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression2.ts: SyntaxError: ';' expected. (1:14)
> 1 | a = () => { } || a
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression3.ts: SyntaxError: ')' expected. (1:15)
> 1 | a = (() => { } || a)
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration8.ts: SyntaxError: '(' expected. (3:20)
1 | class C {
2 | // Not a constructor
> 3 | public constructor;
| ^
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum4.ts: SyntaxError: Enum member expected. (4:8)
2 |
3 | export enum SignatureFlags {
> 4 | ,
| ^
5 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts: SyntaxError: ',' expected. (2:11)
1 | enum E2 { a, }
> 2 | enum E3 { a: 1, }
| ^
3 | enum E1 { a, b: 1, c, d: 2 = 3 }
../TypeScript/tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnumDeclaration4.ts: SyntaxError: Identifier expected. (1:5)
> 1 | enum void {
| ^
2 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts: SyntaxError: '}' expected. (3:13)
1 | class Outer
2 | {
> 3 | static public
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList1.ts: SyntaxError: Argument expression expected. (3:3)
1 | function foo() {
2 | bar(
> 3 | return x;
| ^
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList2.ts: SyntaxError: ')' expected. (2:7)
1 | function foo() {
> 2 | bar(;
| ^
3 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList3.ts: SyntaxError: Argument expression expected. (3:3)
1 | function foo() {
2 | bar(a,
> 3 | return;
| ^
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList4.ts: SyntaxError: ',' expected. (3:3)
1 | function foo() {
2 | bar(a,b
> 3 | return;
| ^
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList6.ts: SyntaxError: ')' expected. (1:5)
> 1 | Foo(,
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList7.ts: SyntaxError: ')' expected. (1:7)
> 1 | Foo(a,,
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/parserErrorRecoveryArrayLiteralExpression1.ts: SyntaxError: ',' expected. (2:0)
1 | var v = [1, 2, 3
> 2 | 4, 5, 6, 7];
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/parserErrorRecoveryArrayLiteralExpression2.ts: SyntaxError: ',' expected. (3:1)
1 | var points = [-0.6961439251899719, 1.207661509513855, 0.19374050199985504, -0
2 |
> 3 | .7042760848999023, 1.1955541372299194, 0.19600726664066315, -0.7120069861412048];
| ^
4 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/parserErrorRecoveryArrayLiteralExpression3.ts: SyntaxError: ',' expected. (2:53)
1 |
> 2 | var texCoords = [2, 2, 0.5000001192092895, 0.8749999 ; 403953552, 0.5000001192092895, 0.8749999403953552];
| ^
3 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction1.ts: SyntaxError: Type expected. (1:12)
> 1 | var v = (a: ) => {
| ^
2 |
3 | };
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction3.ts: SyntaxError: Type expected. (1:13)
> 1 | var v = (a): => {
| ^
2 |
3 | };
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction1.ts: SyntaxError: Type expected. (1:12)
> 1 | var v = (a: ) => {
| ^
2 |
3 | };
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction3.ts: SyntaxError: Type expected. (1:13)
> 1 | var v = (a): => {
| ^
2 |
3 | };
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/Blocks/parserErrorRecovery_Block1.ts: SyntaxError: Expression expected. (3:4)
1 | function f() {
2 | 1 +
> 3 | return;
| ^
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/Blocks/parserErrorRecovery_Block2.ts: SyntaxError: Invalid character. (2:4)
1 | function f() {
> 2 | #
| ^
3 | return;
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/Blocks/parserErrorRecovery_Block3.ts: SyntaxError: Declaration or statement expected. (4:4)
2 | private a(): boolean {
3 |
> 4 | private b(): boolean {
| ^
5 | }
6 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement1.ts: SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. (5:0)
3 | // Classes can't be nested. So we should bail out of parsing here and recover
4 | // this as a source unit element.
> 5 | class D {
| ^
6 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement2.ts: SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. (4:2)
2 | class C {
3 |
> 4 | enum E {
| ^
5 | }
6 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement3.ts: SyntaxError: Invalid character. (2:3)
1 | module M {
> 2 | #
| ^
3 | class C {
4 | }
5 | @
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/Expressions/parserErrorRecovery_Expression1.ts: SyntaxError: Expression expected. (1:9)
> 1 | var v = ()({});
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause1.ts: SyntaxError: Cannot read property 'expression' of undefined (undefined:undefined)
1 | class C extends {
2 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause3.ts: SyntaxError: Cannot read property 'expression' of undefined (undefined:undefined)
1 | class C extends implements A {
2 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement1.ts: SyntaxError: Expression expected. (4:2)
2 | f1() {
3 | if (
> 4 | }
| ^
5 | f2() {
6 | }
7 | f3() {
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement2.ts: SyntaxError: ')' expected. (4:2)
2 | f1() {
3 | if (a
> 4 | }
| ^
5 | f2() {
6 | }
7 | f3() {
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement3.ts: SyntaxError: ')' expected. (4:2)
2 | f1() {
3 | if (a.b
> 4 | }
| ^
5 | f2() {
6 | }
7 | f3() {
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement4.ts: SyntaxError: Expression expected. (4:2)
2 | f1() {
3 | if (a.b)
> 4 | }
| ^
5 | f2() {
6 | }
7 | f3() {
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement5.ts: SyntaxError: ';' expected. (5:7)
3 | if (a.b) {
4 | }
> 5 | f2() {
| ^
6 | }
7 | f3() {
8 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement6.ts: SyntaxError: Declaration or statement expected. (5:2)
3 | if (a.b) {
4 | }
> 5 | public f2() {
| ^
6 | }
7 | f3() {
8 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/IncompleteMemberVariables/parserErrorRecovery_IncompleteMemberVariable2.ts: SyntaxError: '=' expected. (12:21)
10 | export class Point implements IPoint {
11 |
> 12 | public con:C "hello";
| ^
13 | // Constructor
14 | constructor (public x: number, public y: number) { }
15 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/LeftShifts/parserErrorRecovery_LeftShift1.ts: SyntaxError: Expression expected. (1:28)
> 1 | retValue = bfs.VARIABLES >> );
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ModuleElements/parserErrorRecovery_ModuleElement1.ts: SyntaxError: Declaration or statement expected. (2:0)
1 | return foo;
> 2 | }
| ^
3 | return bar;
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ModuleElements/parserErrorRecovery_ModuleElement2.ts: SyntaxError: Declaration or statement expected. (7:0)
5 | }
6 |
> 7 | )
| ^
8 | )
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral1.ts: SyntaxError: ',' expected. (1:15)
> 1 | var v = { a: 1 b: 2 }
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral2.ts: SyntaxError: ':' expected. (2:0)
1 | var v = { a
> 2 | return;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral3.ts: SyntaxError: Expression expected. (2:0)
1 | var v = { a:
> 2 | return;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral4.ts: SyntaxError: ',' expected. (2:0)
1 | var v = { a: 1
> 2 | return;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral5.ts: SyntaxError: ':' expected. (2:6)
1 | var v = { a: 1,
> 2 | return;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList1.ts: SyntaxError: ',' expected. (1:13)
> 1 | function f(a {
| ^
2 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList2.ts: SyntaxError: ')' expected. (2:1)
1 | function f(a, {
> 2 | }
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList4.ts: SyntaxError: Invalid character. (1:13)
> 1 | function f(a,#) {
| ^
2 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList5.ts: SyntaxError: ',' expected. (1:10)
> 1 | (a:number => { }
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList6.ts: SyntaxError: Type expected. (2:22)
1 | class Foo {
> 2 | public banana (x: break) { }
| ^
3 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserEmptyParenthesizedExpression1.ts: SyntaxError: Expression expected. (2:4)
1 | function getObj() {
> 2 | ().toString();
| ^
3 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction1.ts: SyntaxError: Identifier expected. (1:9)
> 1 | function =>
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction2.ts: SyntaxError: Identifier expected. (1:9)
> 1 | function (a => b;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantAccessibilityModifierInModule1.ts: SyntaxError: Declaration or statement expected. (3:4)
1 | module M {
2 | var x=10; // variable local to this module body
> 3 | private y=x; // property visible only in module
| ^
4 | export var z=y; // property visible to any code
5 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantEqualsGreaterThanAfterFunction1.ts: SyntaxError: '{' or ';' expected. (1:13)
> 1 | function f() => 4;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantEqualsGreaterThanAfterFunction2.ts: SyntaxError: '{' or ';' expected. (1:17)
> 1 | function f(p: A) => p;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserFuzz1.ts: SyntaxError: ';' expected. (1:8)
> 1 | cla <ss {
| ^
2 | _ static try
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts: SyntaxError: '{' expected. (4:12)
2 | where(filter: Iterator<T, boolean>): Query<T> {
3 | return fromDoWhile(test =>
> 4 | var index = 0;
| ^
5 | return this.doWhile((item, i) => filter(item, i) ? test(item, index++) : true);
6 | });
7 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserPublicBreak1.ts: SyntaxError: Declaration or statement expected. (1:0)
> 1 | public break;
| ^
2 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnfinishedTypeNameBeforeKeyword1.ts: SyntaxError: Identifier expected. (1:19)
> 1 | var x: TypeModule1.
| ^
2 | module TypeModule2 {
3 | }
4 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnterminatedGeneric1.ts: SyntaxError: '>' expected. (2:53)
1 | interface IQService {
> 2 | all(promises: IPromise < any > []): IPromise<
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnterminatedGeneric2.ts: SyntaxError: ';' expected. (2:33)
1 | declare module ng {
> 2 | interfaceICompiledExpression {
| ^
3 | (context: any, locals?: any): any;
4 | assign(context: any, value: any): any;
5 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/SourceUnits/parserErrorRecovery_SourceUnit1.ts: SyntaxError: Declaration or statement expected. (3:0)
1 | class C {
2 | }
> 3 | }
| ^
4 | class D {
5 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement1.ts: SyntaxError: Expression expected. (4:4)
2 | case 1:
3 | 1 +
> 4 | case 2:
| ^
5 | 1 +
6 | default:
7 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement2.ts: SyntaxError: 'case' or 'default' expected. (5:0)
3 | switch (e) {
4 |
> 5 | class D {
| ^
6 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/TypeArgumentLists/parserX_TypeArgumentList1.ts: SyntaxError: Invalid character. (1:8)
> 1 | Foo<A,B,\ C>(4, 5, 6);
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/TypeArgumentLists/TypeArgumentList1.ts: SyntaxError: Invalid character. (1:8)
> 1 | Foo<A,B,\ C>(4, 5, 6);
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/VariableLists/parserInvalidIdentifiersInVariableStatements1.ts: SyntaxError: Variable declaration expected. (1:4)
> 1 | var export;
| ^
2 | var foo;
3 | var class;
4 | var bar;
../TypeScript/tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment3.ts: SyntaxError: Expression expected. (1:8)
> 1 | export =
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment4.ts: SyntaxError: Expression expected. (1:9)
> 1 | export = ;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Expressions/parseIncompleteBinaryExpression1.ts: SyntaxError: Expression expected. (1:9)
> 1 | var v = || b;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Expressions/parserMemberAccessAfterPostfixExpression1.ts: SyntaxError: ';' expected. (1:3)
> 1 | a--.toString()
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Expressions/parserPostfixPostfixExpression1.ts: SyntaxError: ';' expected. (1:4)
> 1 | a++ ++;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Expressions/parserPostfixUnaryExpression1.ts: SyntaxError: ';' expected. (1:7)
> 1 | foo ++ ++;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Expressions/parserTypeAssertionInObjectCreationExpression1.ts: SyntaxError: Expression expected. (1:4)
> 1 | new <T>Foo()
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Expressions/parserUnaryExpression5.ts: SyntaxError: Expression expected. (1:3)
> 1 | ++ delete foo.bar
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts: SyntaxError: Expression or comma expected. (2:44)
1 | export class Game {
> 2 | private position = new DisplayPosition([), 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 0], NoMove, 0);
| ^
3 | private prevConfig: SeedCoords[][];
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserCastVersusArrowFunction1.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (10:9)
8 | var v = <T>(a);
9 | var v = <T>(a, b);
> 10 | var v = <T>(a = 1, b = 2);
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserConstructorAmbiguity3.ts: SyntaxError: '(' expected. (1:11)
> 1 | new Date<A>
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity12.ts: SyntaxError: Expression expected. (1:5)
> 1 | 1 >> = 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity13.ts: SyntaxError: Expression expected. (1:8)
> 1 | 1 >>/**/= 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity14.ts: SyntaxError: Expression expected. (2:0)
1 | 1 >>
> 2 | = 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity17.ts: SyntaxError: Expression expected. (1:6)
> 1 | 1 >>> = 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity18.ts: SyntaxError: Expression expected. (1:9)
> 1 | 1 >>>/**/= 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity19.ts: SyntaxError: Expression expected. (2:0)
1 | 1 >>>
> 2 | = 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity2.ts: SyntaxError: Expression expected. (1:4)
> 1 | 1 > > 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity3.ts: SyntaxError: Expression expected. (1:7)
> 1 | 1 >/**/> 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity4.ts: SyntaxError: Expression expected. (2:0)
1 | 1 >
> 2 | > 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity7.ts: SyntaxError: Expression expected. (1:5)
> 1 | 1 >> > 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity8.ts: SyntaxError: Expression expected. (1:8)
> 1 | 1 >>/**/> 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity9.ts: SyntaxError: Expression expected. (2:0)
1 | 1 >>
> 2 | > 2;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserMemberAccessExpression1.ts: SyntaxError: '(' expected. (3:6)
1 | Foo<T>();
2 | Foo.Bar<T>();
> 3 | Foo<T>.Bar();
| ^
4 | Foo<T>.Bar<T>();
5 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/Generics/parserMemberAccessOffOfGenericType1.ts: SyntaxError: '(' expected. (1:20)
> 1 | var v = List<number>.makeChild();
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration5.ts: SyntaxError: ';' expected. (2:23)
1 | class C {
> 2 | [a: string]: number public v: number
| ^
3 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts: SyntaxError: Type expected. (3:0)
1 | interface I {
2 | [...a]:
> 3 | }
| ^
4 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts: SyntaxError: Type expected. (3:16)
1 | interface I {
2 | p, // Used to be indexer, now it is a computed property
> 3 | [p1: string]: ,
| ^
4 | [p2: string, p3: number]:
5 | }
6 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts: SyntaxError: Type expected. (3:0)
1 | interface I {
2 | [public a]:
> 3 | }
| ^
4 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts: SyntaxError: Type expected. (3:0)
1 | interface I {
2 | [a?]:
> 3 | }
| ^
4 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature6.ts: SyntaxError: Type expected. (3:0)
1 | interface I {
2 | [a: boolean]:
> 3 | }
| ^
4 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature7.ts: SyntaxError: Type expected. (3:0)
1 | interface I {
2 | [a: string]:
> 3 | }
| ^
4 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature8.ts: SyntaxError: Type expected. (1:26)
> 1 | var foo: { [index: any]: }; // expect an error here
| ^
2 | var foo2: { [index: RegExp]: }; // expect an error here
3 |
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -18,10 +18,5 @@
"name": "A"
}
- }
- ]
- },
- {
- "type": "TSHeritageClause",
- "types": [
+ },
{
"type": "TSExpressionWithTypeArguments",
Index:
===================================================================
---
+++
@@ -1,2 +1,1 @@
-interface I extends A extends B {
-}
\ No newline at end of file
+interface I extends A, B {}
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -15,7 +15,4 @@
"value": 1
},
- "questionToken": {
- "type": "TSQuestionToken"
- },
"parameters": []
}
Index:
===================================================================
---
+++
@@ -1,3 +1,3 @@
interface I {
- 1?();
-}
\ No newline at end of file
+ 1()
+}
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -15,7 +15,4 @@
"value": 3
},
- "questionToken": {
- "type": "TSQuestionToken"
- },
"typeParameters": [
{
Index:
===================================================================
---
+++
@@ -1,3 +1,3 @@
interface I {
- 3?<T>();
-}
\ No newline at end of file
+ 3<T>()
+}
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -15,7 +15,4 @@
"value": "F"
},
- "questionToken": {
- "type": "TSQuestionToken"
- },
"parameters": []
}
Index:
===================================================================
---
+++
@@ -1,3 +1,3 @@
interface I {
- "F"?();
-}
\ No newline at end of file
+ "F"()
+}
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -15,7 +15,4 @@
"value": "H"
},
- "questionToken": {
- "type": "TSQuestionToken"
- },
"typeParameters": [
{
Index:
===================================================================
---
+++
@@ -1,3 +1,3 @@
interface I {
- "H"?<T>();
-}
\ No newline at end of file
+ "H"<T>()
+}
../TypeScript/tests/cases/conformance/parser/ecmascript5/MissingTokens/parserMissingToken1.ts: SyntaxError: Expression expected. (1:4)
> 1 | a / finally
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/MissingTokens/parserMissingToken2.ts: SyntaxError: Unterminated regular expression literal. (1:1)
> 1 | / b;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType5.ts: SyntaxError: '(' expected. (3:6)
1 | var v: {
2 | A: B
> 3 | <T>;
| ^
4 | };
../TypeScript/tests/cases/conformance/parser/ecmascript5/ObjectTypes/parserObjectType6.ts: SyntaxError: Type expected. (4:0)
2 | a: B,
3 | []:
> 4 | };
| ^
5 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserKeywordsAsIdentifierName2.ts: SyntaxError: '*/' expected. (2:11)
1 | // 'public' should be marked unusable, should complain on trailing /*
> 2 | a.public /*
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserNoASIOnCallAfterFunctionExpression1.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (2:2)
1 | var x = function () { }
> 2 | (<any>window).foo;
| ^
3 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts: SyntaxError: '}' expected. (341:66)
339 |
340 | public print(line: number, outfile) {
> 341 | outfile.WriteLine(this.toString() + ",on line" + line);
| ^
342 | }
343 |
344 | public getText(): string {
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts: SyntaxError: '}' expected. (147:53)
145 | public addToControlFlow(context: ControlFlowContext): void {
146 | // by default, AST adds itself to current basic block and does not check its children
> 147 | context.walker.options.goChildren = false;
| ^
148 | context.addContent(this);
149 | }
150 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource12.ts: SyntaxError: Expression expected. (204:16)
202 | // Verify the code is up to date with the enum
203 | for (var e in (<any>NodeType)._map) {
> 204 | if ((<any>this.childrenWalkers)[e] === undefined) {
| ^
205 | throw new Error("initWalkers function is not up to date with enum content!");
206 | }
207 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource13.ts: SyntaxError: Expression expected. (137:12)
135 | var callbackString = (<any>NodeType)._map[nodeType] + "Callback";
136 | if (callback[callbackString]) {
> 137 | return callback[callbackString](pre, ast);
| ^
138 | }
139 |
140 | if (callback.DefaultCallback) {
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts: SyntaxError: Expression expected. (79:12)
77 |
78 | public parent() {
> 79 | return <TypeScript.AST>AstPath.reverseIndexOf(this.asts, this.asts.length - this.top);
| ^
80 | }
81 |
82 | public count() {
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource2.ts: SyntaxError: '}' expected. (212:16)
210 |
211 | export enum TypeFlags {
> 212 | None = 0,
| ^
213 | HasImplementation = 1,
214 | HasSelfReference = 1 << 1,
215 | MergeResult = 1 << 2,
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource4.ts: SyntaxError: Expression expected. (39:12)
37 |
38 | public getAllKeys(): string[]{
> 39 | var result: string[] = [];
| ^
40 | for (var k in this.table) {
41 | if (this.table[k] != undefined) {
42 | result[result.length] = k;
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource5.ts: SyntaxError: Expression expected. (62:8)
60 |
61 | export function postPrintAST(ast: AST, parent: AST, walker: IAstWalker) {
> 62 | var pc: PrintContext = <PrintContext>walker.state;
| ^
63 | pc.decreaseIndent();
64 | return ast;
65 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource6.ts: SyntaxError: Expression expected. (129:24)
127 | var script = <Script>ast;
128 | context.scopeGetter = function () {
> 129 | return script.bod === null ? null : script.bod.enclosingScope;
| ^
130 | };
131 | context.scopeStartAST = script;
132 | break;
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts: SyntaxError: Expression expected. (106:20)
104 |
105 | var findSym = (id: string) => {
> 106 | if (context.members) {
| ^
107 | return context.members.lookup(name);
108 | }
109 | else {
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource8.ts: SyntaxError: '}' expected. (75:55)
73 |
74 | if (moduleDecl.name && moduleDecl.mod) {
> 75 | moduleDecl.name.sym = moduleDecl.mod.symbol;
| ^
76 | }
77 |
78 | var mod = moduleDecl.mod;
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserRealSource9.ts: SyntaxError: '}' expected. (87:102)
85 | if (!lastParam.getType().isArray()) {
86 | this.checker.errorReporter.simpleErrorFromSym(lastParam,
> 87 | "... parameter must have array type");
| ^
88 | lastParam.parameter.typeLink.type = this.checker.makeArrayType(lastParam.parameter.typeLink.type);
89 | }
90 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserS12.11_A3_T4.ts: SyntaxError: Expression expected. (16:8)
14 |
15 | switch(value) {
> 16 | case:
| ^
17 | result += 2;
18 | default:
19 | result += 32;
../TypeScript/tests/cases/conformance/parser/ecmascript5/parserS7.9_A5.7_T1.ts: SyntaxError: Expression expected. (17:0)
15 | x
16 | ++
> 17 | ++
| ^
18 | y
19 |
20 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName1.ts: SyntaxError: ',' expected. (1:12)
> 1 | var v : void.x;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName2.ts: SyntaxError: Identifier expected. (1:10)
> 1 | var v : x.void;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts: SyntaxError: '}' expected. (62:10)
60 |
61 | export interface ITestMetadata {
> 62 | id: string;
| ^
63 | desc: string;
64 | pass: boolean;
65 | perfResults: {
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509630.ts: SyntaxError: Expression or comma expected. (3:0)
1 | class Type {
2 | public examples = [ // typing here
> 3 | }
| ^
4 | class Any extends Type {
5 | }
6 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509667.ts: SyntaxError: Identifier expected. (4:3)
2 | f1() {
3 | if (this.
> 4 | }
| ^
5 |
6 | f2() {
7 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509669.ts: SyntaxError: '=>' expected. (2:16)
1 | function foo():any {
> 2 | return ():void {};
| ^
3 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser512084.ts: SyntaxError: '}' expected. (2:0)
1 | class foo {
> 2 |
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser512097.ts: SyntaxError: ':' expected. (1:13)
> 1 | var tt = { aa; } // After this point, no useful parsing occurs in the entire file
| ^
2 |
3 | if (true) {
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser512325.ts: SyntaxError: ';' expected. (1:21)
> 1 | var tt = (a, (b, c)) => a+b+c;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser519458.ts: SyntaxError: ';' expected. (1:20)
> 1 | import rect = module("rect"); var bar = new rect.Rect();
| ^
2 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser521128.ts: SyntaxError: ';' expected. (1:14)
> 1 | module.module { }
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser566700.ts: SyntaxError: Expression expected. (1:9)
> 1 | var v = ()({});
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser585151.ts: SyntaxError: Unexpected token. A constructor, method, accessor, or property was expected. (2:2)
1 | class Foo2 {
> 2 | var icecream = "chocolate";
| ^
3 | }
4 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645086_1.ts: SyntaxError: ',' expected. (1:12)
> 1 | var v = /[]/]/
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645086_2.ts: SyntaxError: ',' expected. (1:13)
> 1 | var v = /[^]/]/
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parseRegularExpressionMixedWithComments.ts: Error: Comment location overlaps with node location
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:115:11)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at decorateComment (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:91:7)
at comments.forEach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:134:12)
at attachComments (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:51:14)
at format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:81:23)
at formatWithShebang (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:91:12)
at Object.module.exports.format (/mnt/c/Users/Lucas Azzola/Code/prettier/index.js:105:12)
../TypeScript/tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity4.ts: SyntaxError: Unterminated regular expression literal. (1:5)
> 1 | foo(/notregexp);
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens1.ts: SyntaxError: Invalid character. (1:0)
> 1 | \
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens10.ts: SyntaxError: Invalid character. (1:0)
> 1 | \
| ^
2 | \
3 | /*existing trivia*/ ;
4 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens11.ts: SyntaxError: Invalid character. (1:2)
> 1 | ; \ \ \
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens12.ts: SyntaxError: Invalid character. (1:0)
> 1 | \ \ \
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens13.ts: SyntaxError: Invalid character. (1:9)
> 1 | /regexp/ \ ;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens14.ts: SyntaxError: Invalid character. (1:0)
> 1 | \
| ^
2 | /*existing trivia*/
3 | \
4 | ;
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens15.ts: SyntaxError: Invalid character. (2:0)
1 | /*existing trivia*/
> 2 | \
| ^
3 | \
4 | ;
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens16.ts: SyntaxError: ';' expected. (1:5)
> 1 | foo(): Bar { }
| ^
2 | function Foo () # { }
3 | 4+:5
4 | module M {
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens17.ts: SyntaxError: Invalid character. (1:7)
> 1 | foo(a, \
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens18.ts: SyntaxError: Invalid character. (1:6)
> 1 | foo(a \
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens19.ts: SyntaxError: Invalid character. (1:0)
> 1 | \ declare var v;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens2.ts: SyntaxError: Invalid character. (1:0)
> 1 | \\
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens20.ts: SyntaxError: Invalid character. (1:11)
> 1 | var v: X<T \
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens3.ts: SyntaxError: Invalid character. (1:0)
> 1 | \ ; \
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens4.ts: SyntaxError: Invalid character. (1:0)
> 1 | \ /regexp/;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens5.ts: SyntaxError: Invalid character. (1:0)
> 1 | \ /*foo*/ ;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens6.ts: SyntaxError: Invalid character. (1:8)
> 1 | /*foo*/ \
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens7.ts: SyntaxError: Invalid character. (1:8)
> 1 | /*foo*/ \ /*bar*/
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens8.ts: SyntaxError: Invalid character. (2:8)
1 | ;
> 2 | /*foo*/ \ /*bar*/
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens9.ts: SyntaxError: Invalid character. (2:8)
1 | ; // existing trivia
> 2 | /*foo*/ \ /*bar*/
| ^
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,1 +1,0 @@
-
\ No newline at end of file
../TypeScript/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement2.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1252:14)
../TypeScript/tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement21.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1252:14)
../TypeScript/tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement2.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1234:14)
../TypeScript/tests/cases/conformance/parser/ecmascript5/SuperExpressions/parserSuperExpression2.ts: SyntaxError: 'super' must be followed by an argument list or member access. (3:9)
1 | class C {
2 | M() {
> 3 | super<T>(0);
| ^
4 | }
5 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty2.ts: SyntaxError: Property or signature expected. (3:2)
1 | //@target: ES5
2 | interface I {
> 3 | Symbol.unscopables(): string
| ^
4 | }
5 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/Symbols/parserES5SymbolProperty8.ts: SyntaxError: Property or signature expected. (3:2)
1 | //@target: ES5
2 | var x: {
> 3 | Symbol.toPrimitive(): string
| ^
4 | };
5 |
../TypeScript/tests/cases/conformance/parser/ecmascript5/TupleTypes/TupleType4.ts: SyntaxError: ']' expected. (1:8)
> 1 | var v: [
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Types/parserTypeQuery3.ts: SyntaxError: Identifier expected. (1:16)
> 1 | var v: typeof A.
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Types/parserTypeQuery4.ts: SyntaxError: Identifier expected. (1:16)
> 1 | var v: typeof A.;
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/Types/parserTypeQuery8.ts: SyntaxError: '=' expected. (1:15)
> 1 | var v: typeof A<B>
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration3.ts: SyntaxError: JSX element 'TypeScript.TypeScriptCompiler' has no corresponding closing tag. (4:20)
2 | var outfile = new Harness.Compiler.WriterAggregator()
3 | , outerr = new Harness.Compiler.WriterAggregator()
> 4 | , compiler = <TypeScript.TypeScriptCompiler>new TypeScript.TypeScriptCompiler(outerr)
| ^
5 | , code;
6 | }
../TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration6.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration8.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at path.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2449:25)
at FastPath.map (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:173:19)
at printStatementSequence (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:2434:8)
../TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName1.ts: SyntaxError: ':' expected. (2:14)
1 | //@target: ES6
> 2 | var v = { [e] };
| ^
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -21,7 +21,4 @@
"name": "e"
},
- "questionToken": {
- "type": "TSQuestionToken"
- },
"parameters": [],
"typeAnnotation": {
Index:
===================================================================
---
+++
@@ -1,2 +1,2 @@
//@target: ES6
-var v: { [e]?(): number };
\ No newline at end of file
+var v: { e(): number };
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -19,5 +19,6 @@
"name": {
"type": "Identifier",
- "name": "e"
+ "name": "e",
+ "optional": true
},
"questionToken": {
Index:
===================================================================
---
+++
@@ -1,2 +1,2 @@
//@target: ES6
-var v: { [e]? };
\ No newline at end of file
+var v: { e? };
../TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts: SyntaxError: ';' expected. (5:8)
3 | // No ASI
4 | [e]: number = 0
> 5 | [e2]: number
| ^
6 | }
../TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts: SyntaxError: ',' expected. (5:4)
3 | // no ASI, comma expected
4 | [e] = id++
> 5 | [e2] = 1
| ^
6 | }
../TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts: SyntaxError: ';' expected. (5:11)
3 | // No ASI
4 | [e] = 0
> 5 | [e2]() { }
| ^
6 | }
../TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement2.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1252:14)
../TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement21.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1121:20)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:1252:14)
../TypeScript/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment2.ts: SyntaxError: ':' expected. (1:16)
> 1 | var v = { class };
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment3.ts: SyntaxError: ':' expected. (1:13)
> 1 | var v = { "" };
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment4.ts: SyntaxError: ':' expected. (1:12)
> 1 | var v = { 0 };
| ^
../TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer5.ts: SyntaxError: ']' expected. (3:6)
1 | //@target: ES6
2 | var x = {
> 3 | [s: symbol]: ""
| ^
4 | }
../TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty2.ts: SyntaxError: Property or signature expected. (3:2)
1 | //@target: ES6
2 | interface I {
> 3 | Symbol.unscopables(): string
| ^
4 | }
5 |
../TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty8.ts: SyntaxError: Property or signature expected. (3:2)
1 | //@target: ES6
2 | var x: {
> 3 | Symbol.toPrimitive(): string
| ^
4 | };
5 |
../TypeScript/tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/parser.asyncGenerators.classMethods.esnext.ts: SyntaxError: Parameter declaration expected. (21:14)
19 | // @filename: awaitParameterIsError.ts
20 | class C4 {
> 21 | async * f(await) {
| ^
22 | }
23 | }
24 | // @filename: yieldParameterIsError.ts
../TypeScript/tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/parser.asyncGenerators.functionDeclarations.esnext.ts: SyntaxError: Parameter declaration expected. (14:20)
12 | }
13 | // @filename: awaitParameterIsError.ts
> 14 | async function * f4(await) {
| ^
15 | }
16 | // @filename: yieldParameterIsError.ts
17 | async function * f5(yield) {
../TypeScript/tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/parser.asyncGenerators.functionExpressions.esnext.ts: SyntaxError: '(' expected. (8:28)
6 | };
7 | // @filename: awaitNameIsError.ts
> 8 | const f2 = async function * await() {
| ^
9 | };
10 | // @filename: yieldNameIsError.ts
11 | const f3 = async function * yield() {
../TypeScript/tests/cases/conformance/parser/ecmascriptnext/asyncGenerators/parser.asyncGenerators.objectLiteralMethods.esnext.ts: SyntaxError: Parameter declaration expected. (21:14)
19 | // @filename: awaitParameterIsError.ts
20 | const o4 = {
> 21 | async * f(await) {
| ^
22 | }
23 | };
24 | // @filename: yieldParameterIsError.ts
../TypeScript/tests/cases/conformance/parser/ecmascriptnext/forAwait/parser.forAwait.esnext.ts: SyntaxError: 'of' expected. (11:19)
9 | }
10 | // @filename: forAwaitInWithDeclIsError.ts
> 11 | for await (const x in y) {
| ^
12 | }
13 | // @filename: forAwaitInWithExprIsError.ts
14 | for await (x in y) {
../TypeScript/tests/cases/conformance/references/library-reference-10.ts: SyntaxError: ';' expected. (10:13)
8 | // @filename: /foo/types/jquery/package.json
9 | {
> 10 | "typings": "jquery.d.ts"
| ^
11 | }
12 |
13 | // @filename: /foo/types/jquery/jquery.d.ts
../TypeScript/tests/cases/conformance/references/library-reference-11.ts: SyntaxError: ';' expected. (10:13)
8 | // @filename: /a/node_modules/jquery/package.json
9 | {
> 10 | "typings": "jquery.d.ts"
| ^
11 | }
12 |
13 | // @filename: /a/node_modules/jquery/jquery.d.ts
../TypeScript/tests/cases/conformance/references/library-reference-12.ts: SyntaxError: ';' expected. (9:11)
7 | // @filename: /a/node_modules/jquery/package.json
8 | {
> 9 | "types": "dist/jquery.d.ts"
| ^
10 | }
11 |
12 | // @filename: /a/node_modules/jquery/dist/jquery.d.ts
../TypeScript/tests/cases/conformance/references/library-reference-13.ts: SyntaxError: ';' expected. (9:21)
7 | // @filename: /a/tsconfig.json
8 | {
> 9 | "compilerOptions": {
| ^
10 | "types": [ "jquery" ],
11 | "typeRoots": ["/a/types"]
12 | }
../TypeScript/tests/cases/conformance/references/library-reference-2.ts: SyntaxError: ';' expected. (10:11)
8 | // @filename: /types/jquery/package.json
9 | {
> 10 | "types": "jquery.d.ts"
| ^
11 | }
12 |
13 | // @filename: /types/jquery/jquery.d.ts
../TypeScript/tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral3.ts: SyntaxError: ';' expected. (1:2)
> 1 | 01.0
| ^
../TypeScript/tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral4.ts: SyntaxError: Digit expected. (1:2)
> 1 | 1e
| ^
../TypeScript/tests/cases/conformance/scanner/ecmascript3/scannerES3NumericLiteral6.ts: SyntaxError: Digit expected. (1:3)
> 1 | 1e+
| ^
../TypeScript/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral3.ts: SyntaxError: ';' expected. (2:2)
1 | // @target: ES5
> 2 | 01.0
| ^
../TypeScript/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral4.ts: SyntaxError: Digit expected. (2:2)
1 | // @target: ES5
> 2 | 1e
| ^
../TypeScript/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral6.ts: SyntaxError: Digit expected. (2:3)
1 | // @target: ES5
> 2 | 1e+
| ^
../TypeScript/tests/cases/conformance/scanner/ecmascript5/scannerNumericLiteral9.ts: SyntaxError: ';' expected. (2:2)
1 | // @target: ES5
> 2 | 009
| ^
../TypeScript/tests/cases/conformance/scanner/ecmascript5/scannerS7.4_A2_T2.ts: SyntaxError: '*/' expected. (14:0)
12 | /*CHECK#1/
13 |
> 14 |
| ^
../TypeScript/tests/cases/conformance/scanner/ecmascript5/scannerS7.8.3_A6.1_T1.ts: SyntaxError: Hexadecimal digit expected. (13:2)
11 |
12 | //CHECK#1
> 13 | 0x
| ^
14 |
15 |
../TypeScript/tests/cases/conformance/scanner/ecmascript5/scannerS7.8.4_A7.1_T4.ts: SyntaxError: Hexadecimal digit expected. (13:6)
11 |
12 | //CHECK#
> 13 | "\u000G"
| ^
14 |
15 |
../TypeScript/tests/cases/conformance/scanner/ecmascript5/scannerStringLiterals.ts: SyntaxError: Unterminated string literal. (10:33)
8 | "Legal line continuation \
9 | "
> 10 | "Should error because of newline.
| ^
11 | "Should error because of end of file.
../TypeScript/tests/cases/conformance/scanner/ecmascript5/scannerUnexpectedNullCharacter1.ts: SyntaxError: Invalid character. (1:3)
> 1 | foo+bar;
| ^
../TypeScript/tests/cases/conformance/statements/for-inStatements/for-inStatements.ts: SyntaxError: Expression expected. (27:48)
25 |
26 | for (var x in (<T>(x: T) => x)) { }
> 27 | for (var x in function (x: string, y: number) { return x + y }) { }
| ^
28 |
29 | class A {
30 | biz() {
../TypeScript/tests/cases/conformance/statements/for-inStatements/for-inStatementsInvalid.ts: SyntaxError: Expression expected. (25:48)
23 |
24 | for (var x in (<T>(x: T) => x)) { }
> 25 | for (var x in function (x: string, y: number) { return x + y }) { }
| ^
26 |
27 | class A {
28 | biz() : number{
../TypeScript/tests/cases/conformance/statements/forStatements/forStatementsMultipleValidDecl.ts: SyntaxError: Expression expected. (11:4)
9 | // new declaration space, making redeclaring x as a string valid
10 | function declSpace() {
> 11 | for (var x = 'this is a string'; ;) { }
| ^
12 | }
13 | interface Point { x: number; y: number; }
14 |
../TypeScript/tests/cases/conformance/statements/switchStatements/switchStatements.ts: SyntaxError: '}' expected. (30:12)
28 |
29 | // basic assignable check, rest covered in tests for 'assignement compatibility'
> 30 | class C { id: number; }
| ^
31 | class D extends C { name: string }
32 |
33 | switch (new C()) {
../TypeScript/tests/cases/conformance/statements/throwStatements/invalidThrowStatement.ts: SyntaxError: Expression expected. (3:5)
1 | // @allowUnreachableCode: true
2 |
> 3 | throw;
| ^
4 |
5 | export throw null;
6 |
../TypeScript/tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts: SyntaxError: Expression expected. (7:15)
5 | }
6 |
> 7 | <T>(x: T) => { throw x; }
| ^
8 |
9 | var y: string;
10 | switch (y) {
../TypeScript/tests/cases/conformance/statements/throwStatements/throwStatements.ts: SyntaxError: '}' expected. (49:26)
47 | var aGenericClass = new D<string>();
48 | throw aGenericClass;
> 49 | var anObjectLiteral = { id: 12 };
| ^
50 | throw anObjectLiteral;
51 |
52 | var aFunction = F;
../TypeScript/tests/cases/conformance/statements/tryStatements/invalidTryStatements2.ts: SyntaxError: '(' expected. (3:12)
1 | function fn() {
2 | try {
> 3 | } catch { // syntax error, missing '(x)'
| ^
4 | }
5 |
6 | catch(x) { } // error missing try
../TypeScript/tests/cases/conformance/statements/VariableStatements/everyTypeWithInitializer.ts: SyntaxError: '}' expected. (37:26)
35 | var aClass = new C();
36 | var aGenericClass = new D<string>();
> 37 | var anObjectLiteral = { id: 12 };
| ^
38 |
39 | var aFunction = F;
40 | var aLambda = (x) => 2;
../TypeScript/tests/cases/conformance/statements/VariableStatements/validMultipleVariableDeclarations.ts: SyntaxError: Expression expected. (13:4)
11 | // new declaration space, making redeclaring x as a string valid
12 | function declSpace() {
> 13 | var x = 'this is a string';
| ^
14 | }
15 |
16 | interface Point { x: number; y: number; }
../TypeScript/tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/types/any/narrowFromAnyWithInstanceof.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/types/keyof/circularIndexedAccessErrors.ts: SyntaxError: ',' expected. (15:15)
13 | let x2x = x2.x;
14 |
> 15 | interface T3<T in T3<T>> {
| ^
16 | x: T["x"]
17 | }
18 |
../TypeScript/tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts: SyntaxError: ',' expected. (247:17)
245 |
246 | function f72(
> 247 | func: <T, U, K in keyof T | keyof U>(x: T, y: U, k: K) => (T & U)[K]
| ^
248 | ) {
249 | let a = func({ a: 1, b: "hello" }, { c: true }, "a"); // number
250 | let b = func({ a: 1, b: "hello" }, { c: true }, "b"); // string
../TypeScript/tests/cases/conformance/types/literal/literalTypes1.ts: SyntaxError: Expression expected. (6:22)
4 | let one: 1 = 1;
5 | let two: 2 = 2;
> 6 | let oneOrTwo: 1 | 2 = <1 | 2>1;
| ^
7 |
8 | function f1(x: 0 | 1 | 2) {
9 | switch (x) {
../TypeScript/tests/cases/conformance/types/literal/literalTypesAndTypeAssertions.ts: SyntaxError: Expression expected. (3:7)
1 | const obj = {
2 | a: "foo" as "foo",
> 3 | b: <"foo">"foo",
| ^
4 | c: "foo"
5 | };
6 |
../TypeScript/tests/cases/conformance/types/literal/literalTypeWidening.ts: SyntaxError: Expression expected. (58:15)
56 | const c3 = "foo" as "foo";
57 | let v3 = c3;
> 58 | const c4 = <"foo">"foo";
| ^
59 | let v4 = c4;
60 | }
61 |
../TypeScript/tests/cases/conformance/types/literal/stringLiteralsAssertionsInEqualityComparisons01.ts: SyntaxError: JSX element 'any' has no corresponding closing tag. (3:19)
1 | var a = "foo" === "bar" as string;
2 | var b = "foo" !== ("bar" as string);
> 3 | var c = "foo" == (<any>"bar");
| ^
../TypeScript/tests/cases/conformance/types/literal/stringLiteralsAssertionsInEqualityComparisons02.ts: SyntaxError: JSX element 'number' has no corresponding closing tag. (5:19)
3 | var a = "foo" === "bar" as "baz";
4 | var b = "foo" !== ("bar" as "foo");
> 5 | var c = "foo" == (<number>"bar");
| ^
6 | var d = "foo" === ("bar" as EnhancedString);
../TypeScript/tests/cases/conformance/types/mapped/isomorphicMappedTypeInference.ts: SyntaxError: '}' expected. (153:10)
151 |
152 | const foo = <T>(object: T, partial: Partial<T>) => object;
> 153 | let o = {a: 5, b: 7};
| ^
154 | foo(o, {b: 9});
155 | o = foo(o, {b: 9});
../TypeScript/tests/cases/conformance/types/mapped/mappedTypes4.ts: SyntaxError: '}' expected. (22:12)
20 | }
21 |
> 22 | type A = { a: string };
| ^
23 | type B = { b: string };
24 | type C = { c: string };
25 |
../TypeScript/tests/cases/conformance/types/members/objectTypeWithStringNamedNumericProperty.ts: SyntaxError: JSX element 'void' has no corresponding closing tag. (100:12)
98 |
99 | var b = {
> 100 | "0.1": <void>null,
| ^
101 | ".1": new Object(),
102 | "1": 1,
103 | "1.": "",
../TypeScript/tests/cases/conformance/types/nonPrimitive/nonPrimitiveInGeneric.ts: SyntaxError: ',' expected. (33:18)
31 | }
32 |
> 33 | interface Proxy<T in object> {}
| ^
34 |
35 | var x: Proxy<number>; // error
36 | var y: Proxy<null>; // ok
../TypeScript/tests/cases/conformance/types/nonPrimitive/nonPrimitiveNarrow.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/types/nonPrimitive/nonPrimitiveStrictNull.ts: SyntaxError: ',' expected. (51:18)
49 | }
50 |
> 51 | interface Proxy<T in object> {}
| ^
52 |
53 | var x: Proxy<number>; // error
54 | var y: Proxy<null>; // error
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithAccessibilityModifiersOnParameters.ts: SyntaxError: ',' expected. (16:15)
14 |
15 | class C {
> 16 | foo(public x, private y) { }
| ^
17 | foo2(public x: number, private y: string) { }
18 | foo3<T>(public x: T, private y: T) { }
19 | }
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithDuplicateParameters.ts: SyntaxError: '}' expected. (16:14)
14 |
15 | class C {
> 16 | foo(x, x) { }
| ^
17 | foo2(x: number, x: string) { }
18 | foo3<T>(x: T, x: T) { }
19 | }
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/callSignaturesWithParameterInitializers2.ts: SyntaxError: '{' expected. (20:14)
18 |
19 | var b = {
> 20 | foo(x = 1), // error
| ^
21 | foo(x = 1) { }, // error
22 | }
23 |
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts: SyntaxError: '}' expected. (7:11)
5 |
6 | class C {
> 7 | foo(x) {
| ^
8 | return x;
9 | }
10 | }
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts: SyntaxError: ',' expected. (38:15)
36 | }
37 |
> 38 | interface I3<T in String> {
| ^
39 | (x: "a"),
40 | (x: T),
41 | foo(x: "a"),
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsSubtypeOfNonSpecializedSignature.ts: SyntaxError: ',' expected. (46:15)
44 | }
45 |
> 46 | interface I3<T in String> {
| ^
47 | (x: "a"),
48 | (x: string),
49 | (x: T),
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint3.ts: SyntaxError: ',' expected. (28:8)
26 | y: U,
27 | z: V,
> 28 | foo<W in V>(x: W): T
| ^
29 | }
30 |
31 | interface I2<V, T, U> {
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/callSignatures/typeParameterUsedAsTypeParameterConstraint4.ts: SyntaxError: ',' expected. (12:17)
10 | }
11 |
> 12 | interface I<T, U in T, V in U> {
| ^
13 | x: T,
14 | y: U,
15 | z: W, // error
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/numericIndexerConstrainsPropertyDeclarations.ts: SyntaxError: Expression expected. (91:8)
89 |
90 | get X() {
> 91 | return '';
| ^
92 | },
93 | set X(v) { },
94 | foo() {
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/indexSignatures/stringIndexerConstrainsPropertyDeclarations.ts: SyntaxError: Expression expected. (91:8)
89 |
90 | get X() {
> 91 | return '';
| ^
92 | },
93 | set X(v) { },
94 | foo() {
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/methodSignatures/objectTypesWithOptionalProperties2.ts: SyntaxError: ';' expected. (4:7)
2 |
3 | var a: {
> 4 | x()?: number; // error
| ^
5 | }
6 |
7 | interface I {
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts: SyntaxError: ';' expected. (12:21)
10 | }
11 |
> 12 | var z: { foo: string bar: string }
| ^
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/numericNamedPropertyDuplicates.ts: SyntaxError: ',' expected. (20:4)
18 | var b = {
19 | 2: 1
> 20 | 2: 1
| ^
21 | }
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/propertyNameWithoutTypeAnnotation.ts: SyntaxError: JSX element 'I' has no corresponding closing tag. (19:11)
17 | // These should all be of type 'any'
18 | var r1 = (new C()).foo;
> 19 | var r2 = (<I>null).foo;
| ^
20 | var r3 = a.foo;
21 | var r4 = b.foo;
../TypeScript/tests/cases/conformance/types/objectTypeLiteral/propertySignatures/stringNamedPropertyDuplicates.ts: SyntaxError: ',' expected. (20:4)
18 | var b = {
19 | "a b": 1
> 20 | "a b": 1
| ^
21 | }
../TypeScript/tests/cases/conformance/types/primitives/enum/invalidEnumAssignments.ts: SyntaxError: '}' expected. (21:9)
19 |
20 | function f<T>(a: T) {
> 21 | e = a;
| ^
22 | }
../TypeScript/tests/cases/conformance/types/specifyingTypes/predefinedTypes/objectTypesWithPredefinedTypesAsName2.ts: SyntaxError: '{' expected. (3:6)
1 | // it is an error to use a predefined type as a type name
2 |
> 3 | class void {} // parse error unlike the others
| ^
../TypeScript/tests/cases/conformance/types/specifyingTypes/typeLiterals/arrayTypeOfTypeOf.ts: SyntaxError: '=' expected. (6:21)
4 | var xs: typeof x[]; // Not an error. This is equivalent to Array<typeof x>
5 | var xs2: typeof Array;
> 6 | var xs3: typeof Array<number>;
| ^
7 | var xs4: typeof Array<typeof x>;
../TypeScript/tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteral.ts: SyntaxError: ')' expected. (12:15)
10 | var y2: { <T>(x: T): T; } = <T>(x: T) => x
11 |
> 12 | var z: { new (x: number): number; };
| ^
13 | var z: new (x: number) => number;
../TypeScript/tests/cases/conformance/types/specifyingTypes/typeQueries/invalidTypeOfTarget.ts: SyntaxError: Identifier expected. (1:15)
> 1 | var x1: typeof {};
| ^
2 | var x2: typeof (): void;
3 | var x3: typeof 1;
4 | var x4: typeof '';
../TypeScript/tests/cases/conformance/types/specifyingTypes/typeQueries/recursiveTypesWithTypeof.ts: SyntaxError: ',' expected. (25:10)
23 | var i: (x: typeof i) => typeof x;
24 | var i = i(i);
> 25 | var j: <T in typeof j>(x: T) => T;
| ^
26 | var j = j(j);
27 |
28 | // Same as h, i, j with construct signatures
../TypeScript/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.ts: SyntaxError: JSX element 'M.E' has no corresponding closing tag. (37:9)
35 |
36 | var j = <C>null;
> 37 | var k = <M.E>null;
| ^
../TypeScript/tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts: SyntaxError: JSX element 'M.E' has no corresponding closing tag. (37:9)
35 |
36 | var j = <C>null;
> 37 | var k = <M.E>null;
| ^
../TypeScript/tests/cases/conformance/types/spread/objectSpread.ts: SyntaxError: JSX element 'object' has no corresponding closing tag. (82:31)
80 | let shortCutted: { a: number, b: string } = { ...o, a }
81 | // non primitive
> 82 | let spreadNonPrimitive = { ...<object>{}};
| ^
83 |
../TypeScript/tests/cases/conformance/types/spread/objectSpreadNegativeParse.ts: SyntaxError: Expression expected. (1:17)
> 1 | let o7 = { ...o? };
| ^
2 | let o8 = { ...*o };
3 | let o9 = { ...matchMedia() { }};
4 | let o10 = { ...get x() { return 12; }};
../TypeScript/tests/cases/conformance/types/stringLiteral/stringLiteralTypeAssertion01.ts: SyntaxError: JSX element 'string' has no corresponding closing tag. (30:7)
28 | str = s as string;
29 |
> 30 | str = <string>t;
| ^
31 | str = t as string;
32 |
../TypeScript/tests/cases/conformance/types/thisType/thisTypeErrors.ts: SyntaxError: Expression expected. (30:8)
28 | static y = <this>undefined;
29 | static foo(x: this): this {
> 30 | return undefined;
| ^
31 | }
32 | }
33 |
../TypeScript/tests/cases/conformance/types/thisType/thisTypeInBasePropertyAndDerivedContainerOfBase01.ts: SyntaxError: ',' expected. (3:21)
1 | // @declaration: true
2 |
> 3 | interface BoxOfFoo<T in Foo> {
| ^
4 | item: T
5 | }
6 |
../TypeScript/tests/cases/conformance/types/thisType/thisTypeInClasses.ts: SyntaxError: JSX element 'this' has no corresponding closing tag. (46:18)
44 | }
45 | bar() {
> 46 | let x1 = <this>undefined;
| ^
47 | let x2 = undefined as this;
48 | }
49 | }
../TypeScript/tests/cases/conformance/types/thisType/thisTypeInFunctionsNegative.ts: SyntaxError: Identifier expected. (168:25)
166 |
167 | ///// parse errors /////
> 168 | function modifiers(async this: C): number { return this.n; }
| ^
169 | function restParam(...this: C): number { return this.n; }
170 | function optional(this?: C): number { return this.n; }
171 | function decorated(@deco() this: C): number { return this.n; }
../TypeScript/tests/cases/conformance/types/tuple/castingTuple.ts: SyntaxError: Expression expected. (12:20)
10 | // no error
11 | var numStrTuple: [number, string] = [5, "foo"];
> 12 | var emptyObjTuple = <[{}, {}]>numStrTuple;
| ^
13 | var numStrBoolTuple = <[number, string, boolean]>numStrTuple;
14 | var classCDTuple: [C, D] = [new C(), new D()];
15 | var interfaceIITuple = <[I, I]>classCDTuple;
../TypeScript/tests/cases/conformance/types/tuple/emptyTuples/emptyTuplesTypeAssertion01.ts: SyntaxError: Expression expected. (3:8)
1 | // @declaration: true
2 |
> 3 | let x = <[]>[];
| ^
4 | let y = x[0];
../TypeScript/tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts: SyntaxError: ';' expected. (6:5)
4 | type boolean = I;
5 | type string = I;
> 6 | type void = I;
| ^
7 | type object = I;
8 |
../TypeScript/tests/cases/conformance/types/typeParameters/recurringTypeParamForContainerOfBase01.ts: SyntaxError: ',' expected. (3:21)
1 | // @declaration: true
2 |
> 3 | interface BoxOfFoo<T in Foo<T>> {
| ^
4 | item: T
5 | }
6 |
../TypeScript/tests/cases/conformance/types/typeParameters/typeArgumentLists/callGenericFunctionWithZeroTypeArguments.ts: SyntaxError: Expression expected. (6:27)
4 | var r = f(1);
5 |
> 6 | var f2 = <T>(x: T): T => { return null; }
| ^
7 | var r2 = f2(1);
8 |
9 | var f3: { <T>(x: T): T; }
../TypeScript/tests/cases/conformance/types/typeParameters/typeArgumentLists/constraintSatisfactionWithEmptyObject.ts: SyntaxError: ',' expected. (15:14)
13 | var r2 = new C({});
14 |
> 15 | interface I<T in Object> {
| ^
16 | x: T
17 | }
18 | var i: I<{}>;
../TypeScript/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction.ts: SyntaxError: Expression expected. (42:35)
40 |
41 | var r9 = foo(<U>(x: U) => x);
> 42 | var r10 = foo(function <U>(x: U) { return x; });
| ^
43 | var r11 = foo(<U extends Date>(x: U) => x);
44 | var r12 = foo(<U, V>(x: U, y: V) => x);
45 | var r13 = foo(i2);
../TypeScript/tests/cases/conformance/types/typeParameters/typeArgumentLists/functionConstraintSatisfaction2.ts: SyntaxError: Identifier expected. (28:17)
26 | var r7 = foo2(b);
27 | var r8 = foo2(<U>(x: U) => x); // no error expected
> 28 | var r11 = foo2(<U, V>(x: U, y: V) => x);
| ^
29 | var r13 = foo2(C2);
30 | var r14 = foo2(b2);
31 |
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints.ts: SyntaxError: ',' expected. (14:14)
12 | var r = new C<Date>().f();
13 |
> 14 | interface I<T in Date> {
| ^
15 | foo: T
16 | }
17 | var i: I<Date>;
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints2.ts: SyntaxError: ',' expected. (43:14)
41 | var r1b = new C<B, A>().g(new B());
42 |
> 43 | interface I<U in A, T in A> {
| ^
44 | foo: U
45 | }
46 | //interface I<U extends T, T extends A> {
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints3.ts: SyntaxError: ',' expected. (33:14)
31 | var r1b = new C<A, B>().g(new B());
32 |
> 33 | interface I<U in A, T in U> {
| ^
34 | foo: T
35 | }
36 | var i: I<A, B>;
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints4.ts: SyntaxError: ',' expected. (11:14)
9 | var r = new C<Date>().f();
10 |
> 11 | interface I<T in Date> {
| ^
12 | foo: T
13 | }
14 | var i: I<Date>;
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithConstraints5.ts: SyntaxError: ',' expected. (23:14)
21 | var r = new C<B, A>().f();
22 |
> 23 | interface I<U in T, T in A> {
| ^
24 | foo: U
25 | }
26 | var i: I<B, A>;
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/propertyAccessOnTypeParameterWithoutConstraints.ts: SyntaxError: Expression expected. (26:8)
24 | var b = {
25 | foo: <T>(x: T) => {
> 26 | var a = x['toString'](); // should be string
| ^
27 | return a + x.toString();
28 | }
29 | }
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterDirectlyConstrainedToItself.ts: SyntaxError: ',' expected. (6:14)
4 | class C2<T, U extends U> {}
5 |
> 6 | interface I<T in T> {}
| ^
7 | interface I2<T, U in U> {}
8 |
9 | function f<T extends T>() {}
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterIndirectlyConstrainedToItself.ts: SyntaxError: ',' expected. (4:14)
2 | class C2<T extends U, U extends V, V extends T> {}
3 |
> 4 | interface I<U in T, T in U> {}
| ^
5 | interface I2<T in U, U in V, V in T> {}
6 |
7 | function f<U extends T, T extends U>() {}
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/typeParametersAvailableInNestedScope.ts: SyntaxError: Expression expected. (5:8)
3 |
4 | x = <U>(a: U) => {
> 5 | var y: T;
| ^
6 | return y;
7 | }
8 |
../TypeScript/tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterUsedAsConstraint.ts: SyntaxError: ',' expected. (8:17)
6 | class C6<T, U extends T, V extends U> {}
7 |
> 8 | interface I<T, U in T> {}
| ^
9 | interface I2<T in U, U> {}
10 | interface I3<T in Date, U in T> {}
11 | interface I4<T in U, U in Date> {}
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/anyAssignableToEveryType2.ts: SyntaxError: ',' expected. (105:19)
103 | }
104 |
> 105 | interface I18<T, U in T> {
| ^
106 | [x: string]: U,
107 | foo: any
108 | }
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures.ts: SyntaxError: Expression expected. (24:27)
22 | t = <T>(x: T) => 1;
23 | t = () => 1;
> 24 | t = function (x: number) { return ''; }
| ^
25 | a = <T>(x: T) => 1;
26 | a = () => 1;
27 | a = function (x: number) { return ''; }
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures2.ts: SyntaxError: '}' expected. (24:7)
22 | t = { f: () => 1 };
23 | t = { f: <T>(x:T) => 1 };
> 24 | t = { f: function f() { return 1 } };
| ^
25 | t = { f(x: number) { return ''; } }
26 | a = { f: () => 1 }
27 | a = { f: <T>(x: T) => 1 };
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures3.ts: SyntaxError: ',' expected. (41:5)
39 | };
40 | var a16: {
> 41 | <T in Derived>(x: T): number[],
| ^
42 | <U in Base>(x: U): number[]
43 | };
44 | var a17: {
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures4.ts: SyntaxError: ',' expected. (48:11)
46 | var a17: {
47 | (x: {
> 48 | <T in Derived>(a: T): T,
| ^
49 | <T in Base>(a: T): T
50 | }): any[],
51 | (x: {
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures5.ts: SyntaxError: ',' expected. (21:11)
19 | var a4: <T, U>(x: T, y: U) => string;
20 | var a5: <T, U>(x: (arg: T) => U) => T;
> 21 | var a6: <T in Base>(x: (arg: T) => Derived) => T;
| ^
22 | var a11: <T>(x: { foo: T }, y: { foo: T, bar: T }) => Base;
23 | var a15: <T>(x: { a: T, b: T }) => T[];
24 | var a16: <T in Base>(x: { a: T, b: T }) => T[];
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures6.ts: SyntaxError: ',' expected. (22:9)
20 | a4: <T, U>(x: T, y: U) => string,
21 | a5: <T, U>(x: (arg: T) => U) => T,
> 22 | a6: <T in Base>(x: (arg: T) => Derived) => T,
| ^
23 | a11: <T>(x: { foo: T }, y: { foo: T, bar: T }) => Base,
24 | a15: <T>(x: { a: T, b: T }) => T[],
25 | a16: <T in Base>(x: { a: T, b: T }) => T[]
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures3.ts: SyntaxError: ',' expected. (39:9)
37 | };
38 | var a16: {
> 39 | new <T in Derived>(x: T): number[],
| ^
40 | new <U in Base>(x: U): number[]
41 | };
42 | var a17: {
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures4.ts: SyntaxError: ',' expected. (47:15)
45 | var a17: {
46 | new (x: {
> 47 | new <T in Derived>(a: T): T,
| ^
48 | new <T in Base>(a: T): T
49 | }): any[],
50 | new (x: {
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures5.ts: SyntaxError: ',' expected. (21:15)
19 | var a4: new <T, U>(x: T, y: U) => string;
20 | var a5: new <T, U>(x: new (arg: T) => U) => T;
> 21 | var a6: new <T in Base>(x: new (arg: T) => Derived) => T;
| ^
22 | var a11: new <T>(x: { foo: T }, y: { foo: T, bar: T }) => Base;
23 | var a15: new <T>(x: { a: T, b: T }) => T[];
24 | var a16: new <T in Base>(x: { a: T, b: T }) => T[];
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithConstructSignatures6.ts: SyntaxError: ',' expected. (22:13)
20 | a4: new <T, U>(x: T, y: U) => string,
21 | a5: new <T, U>(x: (arg: T) => U) => T,
> 22 | a6: new <T in Base>(x: (arg: T) => Derived) => T,
| ^
23 | a11: new <T>(x: { foo: T }, y: { foo: T, bar: T }) => Base,
24 | a15: new <T>(x: { a: T, b: T }) => T[],
25 | a16: new <T in Base>(x: { a: T, b: T }) => T[]
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignatures.ts: SyntaxError: ',' expected. (3:10)
1 | // some complex cases of assignment compat of generic signatures that stress contextual signature instantiation
2 |
> 3 | var f: <S in { p: string }[]>(x: S) => void;
| ^
4 | var g: <T in { p: string }>(x: T[]) => void;
5 |
6 | f = g; // ok
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignatures4.ts: SyntaxError: ',' expected. (7:10)
5 | }
6 |
> 7 | var x: <T in I2<T>>(z: T) => void;
| ^
8 | var y: <T in I2<I2<T>>>(z: T) => void;
9 |
10 | // These both do not make sense as we would eventually be comparing I2<T> to I2<I2<T>>, and they are self referencing anyway
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignaturesWithOptionalParameters.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (127:23)
125 | this.a5 = <T>(x?: T, y?: T) => null; // ok, fewer required params
126 | this.a5 = <T>(x: T) => null; // ok, all present params match
> 127 | this.a5 = <T>(x: T, y: T) => null; // ok, same number of params
| ^
128 | }
129 | }
130 | }
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithNumericIndexer2.ts: SyntaxError: ',' expected. (21:16)
19 |
20 | namespace Generics { // ok // error // error // error // error // ok // ok
> 21 | interface A<T in Base> {
| ^
22 | [x: number]: T
23 | }
24 |
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithStringIndexer2.ts: SyntaxError: ',' expected. (22:16)
20 |
21 | namespace Generics { // ok // ok // error // ok // ok // error // error // error // error // error
> 22 | interface A<T in Base> {
| ^
23 | [x: string]: T
24 | }
25 |
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance2.ts: SyntaxError: ',' expected. (43:7)
41 | },
42 | a16: {
> 43 | <T in Derived>(x: T): number[],
| ^
44 | <U in Base>(x: U): number[]
45 | },
46 | a17: {
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance3.ts: SyntaxError: ',' expected. (53:13)
51 | a17: {
52 | (x: {
> 53 | <T in Derived>(a: T): T,
| ^
54 | <T in Base>(a: T): T
55 | }): any[],
56 | (x: {
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance4.ts: SyntaxError: ',' expected. (23:9)
21 | a4: <T, U>(x: T, y: U) => string,
22 | a5: <T, U>(x: (arg: T) => U) => T,
> 23 | a6: <T in Base>(x: (arg: T) => Derived) => T,
| ^
24 | a11: <T>(x: { foo: T }, y: { foo: T, bar: T }) => Base,
25 | a15: <T>(x: { a: T, b: T }) => T[],
26 | a16: <T in Base>(x: { a: T, b: T }) => T[],
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance5.ts: SyntaxError: ',' expected. (53:9)
51 | a4: <T, U>(x: T, y: U) => T, // ok, instantiation of N is a subtype of M, T is string, U is number
52 | a5: <T, U>(x: (arg: T) => U) => T, // ok, U is in a parameter position so inferences can be made
> 53 | a6: <T in Base, U in Derived>(x: (arg: T) => U) => T, // ok, same as a5 but with object type hierarchy
| ^
54 | a7: <T in Base, U in Derived>(x: (arg: T) => U) => (r: T) => U, // ok
55 | a8: <T in Base, U in Derived>(
56 | x: (arg: T) => U,
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/callSignatureAssignabilityInInheritance6.ts: SyntaxError: ',' expected. (25:9)
23 | a4: <T, U>(x: T, y: U) => string,
24 | a5: <T, U>(x: (arg: T) => U) => T,
> 25 | a6: <T in Base>(x: (arg: T) => Derived) => T,
| ^
26 | a11: <T>(x: { foo: T }, y: { foo: T, bar: T }) => Base,
27 | a15: <T>(x: { a: T, b: T }) => T[],
28 | a16: <T in Base>(x: { a: T, b: T }) => T[]
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance2.ts: SyntaxError: ',' expected. (41:11)
39 | },
40 | a16: {
> 41 | new <T in Derived>(x: T): number[],
| ^
42 | new <U in Base>(x: U): number[]
43 | },
44 | a17: {
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance3.ts: SyntaxError: ',' expected. (63:17)
61 |
62 | interface I3 extends A {
> 63 | a7: new <T in Base, U in Derived, V in Derived2>(x: (arg: T) => U) => (
| ^
64 | r: T
65 | ) => V
66 | }
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance4.ts: SyntaxError: ',' expected. (23:13)
21 | a4: new <T, U>(x: T, y: U) => string,
22 | a5: new <T, U>(x: (arg: T) => U) => T,
> 23 | a6: new <T in Base>(x: (arg: T) => Derived) => T,
| ^
24 | a11: new <T>(x: { foo: T }, y: { foo: T, bar: T }) => Base,
25 | a15: new <T>(x: { a: T, b: T }) => T[],
26 | a16: new <T in Base>(x: { a: T, b: T }) => T[],
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance5.ts: SyntaxError: ',' expected. (51:13)
49 | a4: new <T, U>(x: T, y: U) => T, // ok, instantiation of N is a subtype of M, T is string, U is number
50 | a5: new <T, U>(x: (arg: T) => U) => T, // ok, U is in a parameter position so inferences can be made
> 51 | a6: new <T in Base, U in Derived>(x: (arg: T) => U) => T, // ok, same as a5 but with object type hierarchy
| ^
52 | a7: new <T in Base, U in Derived>(x: (arg: T) => U) => (r: T) => U, // ok
53 | a8: new <T in Base, U in Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (
54 | r: T
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/constructSignatureAssignabilityInInheritance6.ts: SyntaxError: ',' expected. (25:13)
23 | a4: new <T, U>(x: T, y: U) => string,
24 | a5: new <T, U>(x: (arg: T) => U) => T,
> 25 | a6: new <T in Base>(x: (arg: T) => Derived) => T,
| ^
26 | a11: new <T>(x: { foo: T }, y: { foo: T, bar: T }) => Base,
27 | a15: new <T>(x: { a: T, b: T }) => T[],
28 | a16: new <T in Base>(x: { a: T, b: T }) => T[]
../TypeScript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/enumAssignabilityInInheritance.ts: SyntaxError: '}' expected. (39:30)
37 | var r4 = foo5(E.A);
38 |
> 39 | declare function foo6(x: { bar: number }): { bar: number };
| ^
40 | declare function foo6(x: E): E;
41 |
42 | var r4 = foo6(E.A);
../TypeScript/tests/cases/conformance/types/typeRelationships/comparable/optionalProperties02.ts: SyntaxError: '}' expected. (9:8)
7 | }
8 |
> 9 | <Foo>{ a: undefined };
| ^
../TypeScript/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithIntersectionTypes01.ts: SyntaxError: Identifier expected. (17:12)
15 | var z: I2 = x;
16 |
> 17 | var a = <I1 & I3>z;
| ^
18 | var b = <I3>z;
19 | var c = <I2>z;
20 | var d = <I1>y;
../TypeScript/tests/cases/conformance/types/typeRelationships/comparable/typeAssertionsWithUnionTypes01.ts: SyntaxError: Identifier expected. (13:16)
11 | var z: I1 = x;
12 |
> 13 | var a = <number | I2>z;
| ^
14 | var b = <number>z;
15 | var c = <I2>z;
16 | var d = <I1>y;
../TypeScript/tests/cases/conformance/types/typeRelationships/instanceOf/narrowingGenericTypeFromInstanceof01.ts: Error: Value undefined is not a valid document
at assertDoc (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/mnt/c/Users/Lucas Azzola/Code/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:3711:19)
at genericPrintNoParens (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:206:21)
at genericPrint (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:68:28)
at comments.printComments.p (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4174:12)
at Object.printComments (/mnt/c/Users/Lucas Azzola/Code/prettier/src/comments.js:898:17)
at printGenerically (/mnt/c/Users/Lucas Azzola/Code/prettier/src/printer.js:4172:21)
at FastPath.call (/mnt/c/Users/Lucas Azzola/Code/prettier/src/fast-path.js:119:16)
../TypeScript/tests/cases/conformance/types/typeRelationships/recursiveTypes/infiniteExpansionThroughInstantiation2.ts: SyntaxError: ',' expected. (5:4)
3 |
4 | interface AA<
> 5 | T in AA<T> // now an error due to referencing type parameter in constraint
| ^
6 | > {
7 | x: T
8 | }
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/enumIsNotASubtypeOfAnythingButNumber.ts: SyntaxError: ',' expected. (107:19)
105 | }
106 |
> 107 | interface I18<T, U in T> {
| ^
108 | [x: string]: U,
109 | foo: E
110 | }
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/nullIsSubtypeOfEverythingButUndefined.ts: SyntaxError: Expression expected. (31:31)
29 | var r7 = true ? null : () => { };
30 |
> 31 | var r8 = true ? <T>(x: T) => { return x } : null;
| ^
32 | var r8b = true ? null : <T>(x: T) => { return x }; // type parameters not identical across declarations
33 |
34 | interface I1 { foo: number; }
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameter.ts: SyntaxError: Expression expected. (59:35)
57 | var r7 = true ? x : () => { };
58 |
> 59 | var r8 = true ? <T>(x: T) => { return x } : x;
| ^
60 | var r8b = true ? x : <T>(x: T) => { return x }; // type parameters not identical across declarations
61 |
62 | var i1: I1;
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypesOfTypeParameterWithConstraints2.ts: SyntaxError: Expression expected. (95:35)
93 |
94 | function f12<T extends <U>(x: U) => U>(x: T) {
> 95 | var r8 = true ? <T>(x: T) => { return x } : x; // ok
| ^
96 | var r8b = true ? x : <T>(x: T) => { return x }; // ok, type parameters not identical across declarations
97 | }
98 |
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures.ts: SyntaxError: JSX element 'T' has no corresponding closing tag. (10:19)
8 | declare function foo2(cb: any): any;
9 | var r3 = foo2((x: number, y: number) => 1); // ok because base returns void
> 10 | var r4 = foo2(<T>(x: T) => ''); // ok because base returns void
| ^
11 | }
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures2.ts: SyntaxError: Identifier expected. (98:15)
96 | var r3b = [r3arg2, r3arg1];
97 |
> 98 | var r4arg1 = <T, U>(x: T, y: U) => x;
| ^
99 | var r4arg2 = (x: string, y: number) => '';
100 | var r4 = foo4(r4arg1); // any
101 | var r4a = [r4arg1, r4arg2];
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures3.ts: SyntaxError: Identifier expected. (56:36)
54 | declare function foo17(a2: any): any;
55 |
> 56 | var r1 = foo2(<T, U>(x: T) => <U[]>null); // any
| ^
57 | var r1a = [(x: number) => [''], <T, U>(x: T) => <U[]>null];
58 | var r1b = [<T, U>(x: T) => <U[]>null, (x: number) => ['']];
59 |
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignatures4.ts: SyntaxError: Identifier expected. (53:27)
51 | declare function foo18(a: any): any;
52 |
> 53 | var r1arg = <T>(x: T) => <T[]>null;
| ^
54 | var r1arg2 = <T>(x: T) => <T[]>null;
55 | var r1 = foo1(r1arg);
56 | var r1a = [r1arg, r1arg2];
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures2.ts: SyntaxError: ',' expected. (84:11)
82 | declare function foo16(
83 | a: {
> 84 | new <T in Derived>(x: T): number[],
| ^
85 | new <U in Base>(x: U): number[]
86 | }
87 | ): typeof a
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures3.ts: SyntaxError: ',' expected. (67:15)
65 | a2: {
66 | new (x: {
> 67 | new <T in Derived>(a: T): T,
| ^
68 | new <T in Base>(a: T): T
69 | }): any[],
70 | new (x: {
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures4.ts: SyntaxError: ',' expected. (31:33)
29 | declare function foo5(a: any): any
30 |
> 31 | declare function foo6(a6: new <T in Base>(x: new (arg: T) => Derived) => T)
| ^
32 | declare function foo6(a: any): any
33 |
34 | declare function foo11(
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures5.ts: SyntaxError: ',' expected. (51:13)
49 | a4: new <T, U>(x: T, y: U) => T, // ok, instantiation of N is a subtype of M, T is string, U is number
50 | a5: new <T, U>(x: (arg: T) => U) => T, // ok, U is in a parameter position so inferences can be made
> 51 | a6: new <T in Base, U in Derived>(x: (arg: T) => U) => T, // ok, same as a5 but with object type hierarchy
| ^
52 | a7: new <T in Base, U in Derived>(x: (arg: T) => U) => (r: T) => U, // ok
53 | a8: new <T in Base, U in Derived>(x: (arg: T) => U, y: (arg2: T) => U) => (
54 | r: T
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures6.ts: SyntaxError: ',' expected. (25:13)
23 | a4: new <T, U>(x: T, y: U) => string,
24 | a5: new <T, U>(x: (arg: T) => U) => T,
> 25 | a6: new <T in Base>(x: (arg: T) => Derived) => T,
| ^
26 | a11: new <T>(x: { foo: T }, y: { foo: T, bar: T }) => Base,
27 | a15: new <T>(x: { a: T, b: T }) => T[],
28 | a16: new <T in Base>(x: { a: T, b: T }) => T[]
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithNumericIndexer2.ts: SyntaxError: ',' expected. (20:16)
18 |
19 | namespace Generics { // error // ok // error // error // error
> 20 | interface A<T in Derived> {
| ^
21 | [x: number]: T
22 | }
23 |
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithNumericIndexer5.ts: SyntaxError: ',' expected. (20:16)
18 |
19 | namespace Generics { // ok // ok // error // error // error
> 20 | interface A<T in Base> {
| ^
21 | [x: number]: T
22 | }
23 |
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithObjectMembersOptionality.ts: SyntaxError: '}' expected. (45:14)
43 |
44 | module TwoLevels {
> 45 | interface T {
| ^
46 | Foo?: Base;
47 | }
48 |
../TypeScript/tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithStringIndexer2.ts: SyntaxError: ',' expected. (20:16)
18 |
19 | namespace Generics { // error // ok // error // error // error
> 20 | interface A<T in Derived> {
| ^
21 | [x: string]: T
22 | }
23 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignaturesWithOverloads.ts: SyntaxError: JSX element 'number' has no corresponding closing tag. (115:20)
113 |
114 | function foo15(x: I2<string>);
> 115 | function foo15(x: C<number>); // ok
| ^
116 | function foo15(x: any) { }
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithComplexConstraints.ts: SyntaxError: ',' expected. (3:6)
1 | interface A {
2 | <
> 3 | T in {
| ^
4 | <S in A>(x: T, y: S): void
5 | }
6 | >(x: T, y: T): void
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.ts: SyntaxError: ',' expected. (23:14)
21 | }
22 |
> 23 | interface I<T in Number> {
| ^
24 | foo(x: T): string
25 | }
26 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.ts: SyntaxError: ',' expected. (29:14)
27 | }
28 |
> 29 | interface I<T in U, U in Number> {
| ^
30 | foo(x: T, y: U): string
31 | }
32 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.ts: SyntaxError: ',' expected. (42:14)
40 | }
41 |
> 42 | interface I<T in U, U in Five<string>> {
| ^
43 | foo(x: T, y: U): string
44 | }
45 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2.ts: SyntaxError: ',' expected. (23:14)
21 | }
22 |
> 23 | interface I<T in Date> {
| ^
24 | foo(x: T): Date
25 | }
26 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.ts: SyntaxError: ',' expected. (17:14)
15 | }
16 |
> 17 | interface I<T in Number> {
| ^
18 | new (x: T): string
19 | }
20 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.ts: SyntaxError: ',' expected. (23:14)
21 | }
22 |
> 23 | interface I<T in U, U in Number> {
| ^
24 | new (x: T, y: U): string
25 | }
26 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.ts: SyntaxError: ',' expected. (36:14)
34 | }
35 |
> 36 | interface I<T in U, U in Five<string>> {
| ^
37 | new (x: T, y: U): string
38 | }
39 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2.ts: SyntaxError: ',' expected. (17:14)
15 | }
16 |
> 17 | interface I<T in Date> {
| ^
18 | new (x: T): Date
19 | }
20 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers2.ts: SyntaxError: JSX element 'Derived' has no corresponding closing tag. (106:20)
104 |
105 | function foo12(x: I);
> 106 | function foo12(x: C<Derived>); // error
| ^
107 | function foo12(x: any) { }
108 |
109 | function foo13(x: I);
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithPrivates3.ts: SyntaxError: '}' expected. (17:12)
15 |
16 | class C3<T> {
> 17 | private x: T; // This T is the difference between C3 and C1
| ^
18 | }
19 |
20 | class C4 extends C3<T1> {
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithStringIndexers2.ts: SyntaxError: JSX element 'Derived' has no corresponding closing tag. (106:20)
104 |
105 | function foo12(x: I);
> 106 | function foo12(x: C<Derived>); // error
| ^
107 | function foo12(x: any) { }
108 |
109 | function foo13(x: I);
../TypeScript/tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/typeParametersAreIdenticalToThemselves.ts: SyntaxError: ',' expected. (70:9)
68 | ), // no error, different declaration for each T
69 |
> 70 | foo4<T in Date>(x: T),
| ^
71 | foo4<T in Date>(
72 | x: T
73 | ) // no error, different declaration for each T
../TypeScript/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithConstraintsTypeArgumentInference.ts: SyntaxError: ',' expected. (90:14)
88 | var r11 = c.foo8(); // Base
89 |
> 90 | interface I<T in Base, U in Derived> {
| ^
91 | new (t: T, u: U),
92 | foo(t: T, u: U): T,
93 | foo2(t: T, u: U): U,
../TypeScript/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithFunctionTypedArguments.ts: SyntaxError: Identifier expected. (12:15)
10 | var r3 = foo(x => ''); // {}
11 |
> 12 | function foo2<T, U>(x: T, cb: (a: T) => U) {
| ^
13 | return cb(x);
14 | }
15 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithFunctionTypedArguments5.ts: SyntaxError: '}' expected. (10:17)
8 | var r = foo(arg); // {}
9 | // more args not allowed
> 10 | var r2 = foo({ cb: <T>(x: T, y: T) => '' }); // error
| ^
11 | var r3 = foo({ cb: (x: string, y: number) => '' }); // error
12 |
13 | function foo2<T, U>(arg: { cb: (t: T, t2: T) => U }) {
../TypeScript/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments.ts: SyntaxError: '}' expected. (24:4)
22 | }
23 |
> 24 | var r5 = foo5(x => x); // any => string (+1 overload) [inferences are made for T, but lambda not contextually typed]. T is any
| ^
25 | var a: { <T>(x: T): string; <T>(x: number): T; }
26 | var r7 = foo5(a); // any => string (+1 overload)
27 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeInference/genericCallWithOverloadedFunctionTypedArguments2.ts: SyntaxError: '=>' expected. (24:41)
22 | var r6 = foo5(<T>(x: T) => x); // ok
23 |
> 24 | function foo6<T>(cb: { (x: T): string; (x: T, y?: T): string }) {
| ^
25 | return cb;
26 | }
27 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeInference/genericClassWithFunctionTypedMemberArguments.ts: SyntaxError: ',' expected. (17:13)
15 |
16 | class C2<T> {
> 17 | foo(x: (a: T) => T) {
| ^
18 | return x(null);
19 | }
20 | }
../TypeScript/tests/cases/conformance/types/typeRelationships/typeInference/genericClassWithObjectTypeArgsAndConstraints.ts: SyntaxError: ',' expected. (43:16)
41 |
42 | namespace Interface {
> 43 | interface G<T in { x: string }> {
| ^
44 | foo<T in { x: string }>(t: X<T>, t2: X<T>): T
45 | }
46 |
../TypeScript/tests/cases/conformance/types/typeRelationships/typeInference/unionAndIntersectionInference1.ts: SyntaxError: Identifier expected. (5:22)
3 | interface Y { 'i am a very certain type': Y }
4 | var y: Y = <Y>undefined;
> 5 | function destructure<a, r>(
| ^
6 | something: a | Y,
7 | haveValue: (value: a) => r,
8 | haveY: (value: Y) => r
../TypeScript/tests/cases/conformance/typings/typingsLookup1.ts: SyntaxError: ';' expected. (6:9)
4 |
5 | // @filename: /tsconfig.json
> 6 | { "files": "a.ts" }
| ^
7 |
8 | // @filename: /node_modules/@types/jquery/index.d.ts
9 | declare var $: { x: any };
../TypeScript/tests/cases/conformance/typings/typingsLookup2.ts: SyntaxError: ';' expected. (11:11)
9 |
10 | // @filename: /node_modules/@types/angular2/package.json
> 11 | { "typings": null }
| ^
12 |
13 | // @filename: /a.ts
14 |
../TypeScript/tests/cases/conformance/typings/typingsLookup3.ts: SyntaxError: ';' expected. (7:9)
5 |
6 | // @filename: /tsconfig.json
> 7 | { "files": "a.ts" }
| ^
8 |
9 | // @filename: /node_modules/@types/jquery/index.d.ts
10 | declare var $: { x: any };
../TypeScript/tests/cases/conformance/typings/typingsLookup4.ts: SyntaxError: ';' expected. (11:11)
9 |
10 | // @filename: /node_modules/@types/jquery/package.json
> 11 | { "typings": "jquery.d.ts" }
| ^
12 |
13 | // @filename: /node_modules/@types/jquery/jquery.d.ts
14 | export const j: number;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts" />
-//// 1function parseInt(s/*2*/:string):number;
+//// 1function parseInt(s2:string):number;
goTo.marker("2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,5 +9,5 @@
////import * as importBazbaz from "jquery";
////import importBangbang = require("jquery");
-////foouseFoo(bar/*useBar*/, baz/*useBaz*/, bang/*useBang*/);
+////foouseFoo(baruseBar, baz/*useBaz*/, bang/*useBang*/);
verify.quickInfoAt("useFoo", "import foo");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts" />
-//// a.concat(2"hello"/*1*/, 'world');
+//// a.concat(2"hello"1, 'world');
////
//// a.concat(3'Hello');
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
////namespace m2f { export interface I { foo(): void } }
////var x: m2f.1
-////var 2r = m2f/*3*/;
+////var 2r = m2f3;
verify.quickInfoAt("11", "function m2f(x: number): void\nnamespace m2f");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
////module m2g { export class C { foo(x: number) { } } }
////var x: m2g.1;
-////var 2r = m2g/*3*/;
+////var 2r = m2g3;
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////var 1r = new m3d();
////r.2
-////var 4r2 = m3d./*3*/
+////var 4r2 = m3d.3
verify.quickInfoAt("1", "var r: m3d");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////var 1r = new m3e();
////r.2
-////var 4r2 = m3e./*3*/
+////var 4r2 = m3e.3
verify.quickInfoAt("1", "var r: m3e");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
////module m3f { export interface I { foo(): void } }
////var x: m3f.1
-////var 4r = new /*2*/m3f(/*3*/);
+////var 4r = new 2m3f(/*3*/);
////r.5
////var r2: m3f.I = r;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @BaselineFile: bpSpan_inComments.baseline
// @Filename: bpSpan_inComments.ts
-////comment here var x = 10; /*comment here*/
+////comment here var x = 10; comment here
////// comment only line
////multiline comment
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts" />
-////class Foo1/*2*/ { public Bar() { } }
+////class Foo12 { public Bar() { } }
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,6 +9,6 @@
//// export function f(x: typeof C) {
//// x.1
-//// var 3r = new /*2*/x<number>();
-//// var 5r2 = r./*4*/
+//// var 3r = new 2x<number>();
+//// var 5r2 = r.4
//// return typeof r;
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////class Foo {
-//// constructor( /* */) { }
+//// constructor( ) { }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
//// interface I {}
-//// [| class /* */ C /* */ extends /* */ I|]{}
+//// [| class C /* */ extends /* */ I|]{}
verify.rangeAfterCodeFix("/* */ class /* */ C /* */ implements /* */ I");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,14 +5,14 @@
//// namespace N {
//// *enum prefix
-//// export enum *enum identifier prefix E /**open-brace prefix*/ {
-//// literal prefix a /** comma prefix */,
-//// literal prefix b /** comma prefix */,
+//// export enum *enum identifier prefix E *open-brace prefix {
+//// literal prefix a * comma prefix ,
+//// literal prefix b * comma prefix ,
//// literal prefix c
//// * close brace prefix }
//// * interface prefix
-//// export interface *interface name prefix I /**open-brace prefix*/ {
-//// * property prefix a /** colon prefix */: /** enum literal prefix 1*/ E /** dot prefix */. /** enum literal prefix 2*/a;
-//// * property prefix b /** colon prefix */: /** enum prefix */ E;
-//// *method signature prefix foo /**open angle prefix */< /**type parameter name prefix */ X /** closing angle prefix */> /**open paren prefix */(/** parameter prefix */ a/** colon prefix */: /** parameter type prefix */ X /** close paren prefix */) /** colon prefix */: /** return type prefix */ string /** semicolon prefix */;
+//// export interface *interface name prefix I *open-brace prefix {
+//// * property prefix a * colon prefix : /** enum literal prefix 1*/ E /** dot prefix */. /** enum literal prefix 2*/a;
+//// * property prefix b * colon prefix : /** enum prefix */ E;
+//// *method signature prefix foo *open angle prefix < /**type parameter name prefix */ X /** closing angle prefix */> /**open paren prefix */(/** parameter prefix */ a/** colon prefix */: /** parameter type prefix */ X /** close paren prefix */) /** colon prefix */: /** return type prefix */ string /** semicolon prefix */;
//// *close-brace prefix }
//// *close-brace prefix }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
//// 2// 2
//// y,
-////3 /* %3 */
+////3 %3
//// z;
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,9 +1,9 @@
/// <reference path='fourslash.ts' />
-////* This is class c2 without constuctor
+/// This is class c2 without constuctor
////class c12 {
////}
-////var i22 = new c/*28*/2(/*3*/);
-////var i24_c = c/*5*/2;
+////var i22 = new c282(/*3*/);
+////var i24_c = c52;
////class c63 {
//// * Constructor comment
@@ -11,7 +11,7 @@
//// }
////}
-////var i73 = new c/*29*/3(/*8*/);
-////var i39_c = c/*10*/3;
-////* Class comment
+////var i73 = new c293(/*8*/);
+////var i39_c = c103;
+/// Class comment
////class c114 {
//// * Constructor comment
@@ -19,13 +19,13 @@
//// }
////}
-////var i124 = new c/*30*/4(/*13*/);
-////var i414_c = c/*15*/4;
-////* Class with statics
+////var i124 = new c304(/*13*/);
+////var i414_c = c154;
+/// Class with statics
////class c165 {
//// static s1: number;
////}
-////var i175 = new c/*31*/5(/*18*/);
-////var i5_19c = c/*20*/5;
-////* class with statics and constructor
+////var i175 = new c315(/*18*/);
+////var i5_19c = c205;
+/// class with statics and constructor
////class c216 {
//// * s1 comment
@@ -35,6 +35,6 @@
//// }
////}
-////var i226 = new c/*32*/6(/*23*/);
-////var i624_c = c/*25*/6;
+////var i226 = new c326(/*23*/);
+////var i624_c = c256;
////26
////class a {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,33 +1,33 @@
/// <reference path='fourslash.ts' />
-////* This is comment for c1
+/// This is comment for c1
////class c11 {
//// * p1 is property of c1
//// public p21: number;
//// * sum with property
-//// public p32(/** number to add*/b: number) {
-//// return this.4p1 + /*5*/b;
+//// public p32(* number to addb: number) {
+//// return this.4p1 + 5b;
//// }
//// * getter property 1
//// public get p63() {
-//// return this.7p/*8q*/2(/*8*/this./*9*/p1);
+//// return this.7p8q2(/*8*/this./*9*/p1);
//// }
//// * setter property 1
-//// public set p103(/** this is value*/value: number) {
-//// this.11p1 = this./*12*/p/*13q*/2(/*13*/value);
+//// public set p103(* this is valuevalue: number) {
+//// this.11p1 = this.12p/*13q*/2(/*13*/value);
//// }
//// * pp1 is property of c1
//// private p14p1: number;
//// * sum with property
-//// private p15p2(/** number to add*/b: number) {
-//// return this.16p1 + /*17*/b;
+//// private p15p2(* number to addb: number) {
+//// return this.16p1 + 17b;
//// }
//// * getter property 2
//// private get p18p3() {
-//// return this.19p/*20q*/p2(/*20*/this./*21*/pp1);
+//// return this.19p20qp2(/*20*/this./*21*/pp1);
//// }
//// * setter property 2
-//// private set p22p3( /** this is value*/value: number) {
-//// this.23pp1 = this./*24*/p/*25q*/p2(/*25*/value);
+//// private set p22p3( * this is valuevalue: number) {
+//// this.23pp1 = this.24p/*25q*/p2(/*25*/value);
//// }
//// * Constructor method
@@ -37,14 +37,14 @@
//// static s271: number;
//// * static sum with property
-//// static s282(/** number to add*/b: number) {
-//// return 29c1./*30*/s1 + /*31*/b;
+//// static s282(* number to addb: number) {
+//// return 29c1.30s1 + /*31*/b;
//// }
//// * static getter property
//// static get s323() {
-//// return 33c1./*34*/s/*35q*/2(/*35*/c1./*36*/s1);
+//// return 33c1.34s/*35q*/2(/*35*/c1./*36*/s1);
//// }
//// * setter property 3
-//// static set s373( /** this is value*/value: number) {
-//// 38c1./*39*/s1 = /*40*/c1./*41*/s/*42q*/2(/*42*/value);
+//// static set s373( * this is valuevalue: number) {
+//// 38c1.39s1 = /*40*/c1./*41*/s/*42q*/2(/*42*/value);
//// }
//// public nc_43p1: number;
@@ -53,8 +53,8 @@
//// }
//// public get nc_46p3() {
-//// return this.nc47q_p2(/*47*/this.nc_p1);
+//// return this.nc47q_p2(47this.nc_p1);
//// }
//// public set nc48_p3(value: number) {
-//// this.nc_p1 = this.nc49q_p2(/*49*/value);
+//// this.nc_p1 = this.nc49q_p2(49value);
//// }
//// private nc50_pp1: number;
@@ -63,8 +63,8 @@
//// }
//// private get nc53_pp3() {
-//// return this.nc_54qpp2(/*54*/this.nc_pp1);
+//// return this.nc_54qpp2(54this.nc_pp1);
//// }
//// private set nc_p55p3(value: number) {
-//// this.nc_pp1 = this.56qnc_pp2(/*56*/value);
+//// this.nc_pp1 = this.56qnc_pp2(56value);
//// }
//// static nc57_s1: number;
@@ -73,32 +73,32 @@
//// }
//// static get nc60_s3() {
-//// return c1.nc61q_s2(/*61*/c1.nc_s1);
+//// return c1.nc61q_s2(61c1.nc_s1);
//// }
//// static set nc62_s3(value: number) {
-//// c1.nc_s1 = c1.nc_63qs2(/*63*/value);
+//// c1.nc_s1 = c1.nc_63qs2(63value);
//// }
////}
-////var i641 = new c/*65q*/1(/*65*/);
-////var i166_p = i1./*67*/p1;
-////var i168_f = i1.p/*69*/2;
-////var i170_r = i1.p/*71q*/2(/*71*/20);
-////var i1_p72rop = i1./*73*/p3;
-////i1.74p3 = i1_/*75*/prop;
-////var i1_76nc_p = i1.n/*77*/c_p1;
-////var i178_ncf = i1.nc_/*79*/p2;
-////var i1_80ncr = i1.nc/*81q*/_p2(/*81*/20);
-////var i1_n82cprop = i1.n/*83*/c_p3;
-////i1.nc84_p3 = i1_/*85*/ncprop;
-////var i1_86s_p = /*87*/c1./*88*/s1;
-////var i1_s89_f = c1./*90*/s2;
-////var i1_91s_r = c1.s/*92q*/2(/*92*/20);
-////var i1_s93_prop = c1.s/*94*/3;
-////c1.s953 = i1_s/*96*/_prop;
-////var i1_s97_nc_p = c1.n/*98*/c_s1;
-////var i1_s_99ncf = c1.nc/*100*/_s2;
-////var i1_s_101ncr = c1.n/*102q*/c_s2(/*102*/20);
-////var i1_s_n103cprop = c1.nc/*104*/_s3;
-////c1.nc105_s3 = i1_s_nc/*106*/prop;
-////var i1107_c = c/*108*/1;
+////var i641 = new c65q1(/*65*/);
+////var i166_p = i1.67p1;
+////var i168_f = i1.p692;
+////var i170_r = i1.p71q2(/*71*/20);
+////var i1_p72rop = i1.73p3;
+////i1.74p3 = i1_75prop;
+////var i1_76nc_p = i1.n77c_p1;
+////var i178_ncf = i1.nc_79p2;
+////var i1_80ncr = i1.nc81q_p2(/*81*/20);
+////var i1_n82cprop = i1.n83c_p3;
+////i1.nc84_p3 = i1_85ncprop;
+////var i1_86s_p = 87c1./*88*/s1;
+////var i1_s89_f = c1.90s2;
+////var i1_91s_r = c1.s92q2(/*92*/20);
+////var i1_s93_prop = c1.s943;
+////c1.s953 = i1_s96_prop;
+////var i1_s97_nc_p = c1.n98c_s1;
+////var i1_s_99ncf = c1.nc100_s2;
+////var i1_s_101ncr = c1.n102qc_s2(/*102*/20);
+////var i1_s_n103cprop = c1.nc104_s3;
+////c1.nc105_s3 = i1_s_nc106prop;
+////var i1107_c = c1081;
////109
////class cProperties {
@@ -120,6 +120,6 @@
////}
////var cProperties_i = new cProperties();
-////cProperties_i.110p2 = cProperties_i.p/*111*/1;
-////cProperties_i.nc112_p2 = cProperties_i.nc/*113*/_p1;
+////cProperties_i.110p2 = cProperties_i.p1111;
+////cProperties_i.nc112_p2 = cProperties_i.nc113_p1;
////class cWithConstructorProperty {
//// *
@@ -127,7 +127,7 @@
//// * @param a this is first parameter a
////
-//// 119constructor(/**more info about a*/public a: number) {
+//// 119constructor(*more info about apublic a: number) {
//// var b118bbb = 10;
-//// th116is./*114*/a = /*115*/a + 2 + bb/*117*/bb;
+//// th116is.114a = /*115*/a + 2 + bb/*117*/bb;
//// }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////}
////
-////sim1qple( /*1*/);
+////sim1qple( 1);
////
/////// multiLine /// Comments
@@ -12,115 +12,115 @@
////function multiLine() {
////}
-////mul2qtiLine( /*2*/);
+////mul2qtiLine( 2);
////
-////* this is eg of single line jsdoc style comment
+/// this is eg of single line jsdoc style comment
////function jsDocSingleLine() {
////}
-////jsDoc3qSingleLine(/*3*/);
+////jsDoc3qSingleLine(3);
////
////
-////* this is multiple line jsdoc stule comment
+/// this is multiple line jsdoc stule comment
///New line1
///New Line2
////function jsDocMultiLine() {
////}
-////jsDocM4qultiLine(/*4*/);
+////jsDocM4qultiLine(4);
////
-////* this is multiple line jsdoc stule comment
+/// this is multiple line jsdoc stule comment
///New line1
///New Line2
-////* Shoul mege this line as well
-/// and this too /** Another this one too*/
+/// Shoul mege this line as well
+/// and this too * Another this one too
////function jsDocMultiLineMerge() {
////}
-////jsDocMu5qltiLineMerge(/*5*/);
+////jsDocMu5qltiLineMerge(5);
////
////
/////// Triple slash comment
-////* jsdoc comment
+/// jsdoc comment
////function jsDocMixedComments1() {
////}
-////jsDocMix6qedComments1(/*6*/);
+////jsDocMix6qedComments1(6);
////
/////// Triple slash comment
-////* jsdoc comment /** another jsDocComment*/
+/// jsdoc comment /** another jsDocComment
////function jsDocMixedComments2() {
////}
-////jsDocMi7qxedComments2(/*7*/);
+////jsDocMi7qxedComments2(7);
////
-////* jsdoc comment /*** malformed jsDocComment*/
+/// jsdoc comment /*** malformed jsDocComment
/////// Triple slash comment
////function jsDocMixedComments3() {
////}
-////jsDocMixe8qdComments3(/*8*/);
+////jsDocMixe8qdComments3(8);
////
-////* jsdoc comment /** another jsDocComment*/
+/// jsdoc comment /** another jsDocComment
/////// Triple slash comment
/////// Triple slash comment 2
////function jsDocMixedComments4() {
////}
-////jsDocMixed9qComments4(/*9*/);
+////jsDocMixed9qComments4(9);
////
/////// Triple slash comment 1
-////* jsdoc comment /** another jsDocComment*/
+/// jsdoc comment /** another jsDocComment
/////// Triple slash comment
/////// Triple slash comment 2
////function jsDocMixedComments5() {
////}
-////jsDocM10qixedComments5(/*10*/);
+////jsDocM10qixedComments5(10);
////
-////* another jsDocComment
+/// another jsDocComment
/////// Triple slash comment 1
/////// Triple slash comment
/////// Triple slash comment 2
-////* jsdoc comment
+/// jsdoc comment
////function jsDocMixedComments6() {
////}
-////jsDocMix11qedComments6(/*11*/);
+////jsDocMix11qedComments6(11);
////
////// This shoulnot be help comment
////function noHelpComment1() {
////}
-////noHel12qpComment1(/*12*/);
+////noHel12qpComment1(12);
////
//// This shoulnot be help comment
////function noHelpComment2() {
////}
-////noHelpC13qomment2(/*13*/);
+////noHelpC13qomment2(13);
////
////function noHelpComment3() {
////}
-////noHelpC14qomment3(/*14*/);
-////* Adds two integers and returns the result
+////noHelpC14qomment3(14);
+/// Adds two integers and returns the result
//// * @param {number} a first number
//// * @param b second number
////
-////function sum(16aqa: number, /*17aq*/b: number) {
+////function sum(16aqa: number, 17aqb: number) {
//// return 18a + b;
////}
-////15s/*16q*/um(/*16*/10, /*17*/20);
-////* This is multiplication function
-////* @param
-////* @param a first number
-////* @param b
-////* @param c {
+////15s16qum(/*16*/10, /*17*/20);
+/// This is multiplication function
+/// @param
+/// @param a first number
+/// @param b
+/// @param c {
//// @param d @anotherTag
-////* @param e LastParam @anotherTag
-////function multiply(19aqa: number, /*20aq*/b: number, /*21aq*/c?: number, /*22aq*/d?, /*23aq*/e?) {
+/// @param e LastParam @anotherTag
+////function multiply(19aqa: number, 20aqb: number, /*21aq*/c?: number, /*22aq*/d?, /*23aq*/e?) {
////}
-////mult19qiply(/*19*/10,/*20*/ 20,/*21*/ 30, /*22*/40, /*23*/50);
-////* fn f1 with number
+////mult19qiply(1910,/*20*/ 20,/*21*/ 30, /*22*/40, /*23*/50);
+/// fn f1 with number
/// @param { string} b about b
////
////function f1(25aqa: number);
////function f1(26aqb: string);
-////*@param opt optional parameter
+///@param opt optional parameter
////function f1(aOrb, opt?) {
//// return 24aOrb;
////}
-////f25q1(/*25*/10);
-////f26q1(/*26*/"hello");
+////f25q1(2510);
+////f26q1(26"hello");
////27
-////* This is subtract function
+/// This is subtract function
////@param { a
///@param { number | } b this is about b
@@ -130,8 +130,8 @@
////@param { { { () => string; } } f this is optional param f
////
-////function subtract(28aqa: number, /*29aq*/b: number, /*30aq*/c?: () => string, /*31aq*/d?: () => string, /*32aq*/e?: () => string, /*33aq*/f?: () => string) {
+////function subtract(28aqa: number, 29aqb: number, /*30aq*/c?: () => string, /*31aq*/d?: () => string, /*32aq*/e?: () => string, /*33aq*/f?: () => string) {
////}
-////subt28qract(/*28*/10, /*29*/ 20, /*30*/ null, /*31*/ null, /*32*/ null, /*33*/null);
-////* this is square function
+////subt28qract(2810, /*29*/ 20, /*30*/ null, /*31*/ null, /*32*/ null, /*33*/null);
+/// this is square function
////@paramTag { number } a this is input number of paramTag
////@param { number } a this is input number
@@ -141,49 +141,49 @@
//// return a * a;
////}
-////squ34qare(/*34*/10);
-////* this is divide function
+////squ34qare(3410);
+/// this is divide function
////@param { number} a this is a
////@paramTag { number } g this is optional param g
////@param { number} b this is b
////
-////function divide(35aqa: number, /*36aq*/b: number) {
+////function divide(35aqa: number, 36aqb: number) {
////}
-////div35qide(/*35*/10, /*36*/20);
-////*
+////div35qide(3510, /*36*/20);
+///
////Function returns string concat of foo and bar
////@param {string} foo is string
////@param {string} bar is second string
////
-////function fooBar(37aqfoo: string, /*38aq*/bar: string) {
+////function fooBar(37aqfoo: string, 38aqbar: string) {
//// return foo + bar;
////}
-////fo37qoBar(/*37*/"foo",/*38*/"bar");
-////* This is a comment
+////fo37qoBar(37"foo",/*38*/"bar");
+/// This is a comment
////var x;
-////*
+///
//// * This is a comment
////
////var y;
-////* this is jsdoc style function with param tag as well as inline parameter help
+/// this is jsdoc style function with param tag as well as inline parameter help
///@param a it is first parameter
///@param c it is third parameter
////
-////function jsDocParamTest(* this is inline comment for a /*40aq*/a: number, /** this is inline comment for b*/ /*41aq*/b: number, /*42aq*/c: number, /*43aq*/d: number) {
+////function jsDocParamTest(* this is inline comment for a 40aqa: number, /** this is inline comment for b*/ /*41aq*/b: number, /*42aq*/c: number, /*43aq*/d: number) {
//// return 39a + b + c + d;
////}
-////44jsD/*40q*/ocParamTest(/*40*/30, /*41*/40, /*42*/50, /*43*/60);
-////* This is function comment
+////44jsD40qocParamTest(/*40*/30, /*41*/40, /*42*/50, /*43*/60);
+/// This is function comment
//// * And properly aligned comment
////
////function jsDocCommentAlignmentTest1() {
////}
-////jsDocCom45qmentAlignmentTest1(/*45*/);
-////* This is function comment
+////jsDocCom45qmentAlignmentTest1(45);
+/// This is function comment
//// * And aligned with 4 space char margin
////
////function jsDocCommentAlignmentTest2() {
////}
-////jsDocComme46qntAlignmentTest2(/*46*/);
-////* This is function comment
+////jsDocComme46qntAlignmentTest2(46);
+/// This is function comment
//// * And aligned with 4 space char margin
//// * @param {string} a this is info about a
@@ -196,7 +196,7 @@
//// * not aligned text about parameter will eat only one space
////
-////function jsDocCommentAlignmentTest3(47aqa: string, /*48aq*/b, /*49aq*/c) {
+////function jsDocCommentAlignmentTest3(47aqa: string, 48aqb, /*49aq*/c) {
////}
-////jsDocComme47qntAlignmentTest3(/*47*/"hello",/*48*/1, /*49*/2);
+////jsDocComme47qntAlignmentTest3(47"hello",/*48*/1, /*49*/2);
////
////class NoQuic50kInfoClass {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////* Enum of colors
+/// Enum of colors
////enum 1Colors {
//// * Fancy name for 'blue'
@@ -8,5 +8,5 @@
//// 3FancyPink
////}
-////var 4x = /*5*/Colors./*6*/Cornflower;
+////var 4x = 5Colors./*6*/Cornflower;
////x = Colors.7FancyPink;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @Filename: commentsExternalModules_file0.ts
-////* Namespace comment
+/// Namespace comment
////export namespace m11 {
//// * b's comment
@@ -20,15 +20,15 @@
//// * exported function
//// export function fooExport() {
-//// return f3qoo(/*3*/);
+//// return f3qoo(3);
//// }
////}
-////4m1./*5*/fooEx/*6q*/port(/*6*/);
-////var my7var = new m1.m2./*8*/c();
+////4m1.5fooEx/*6q*/port(/*6*/);
+////var my7var = new m1.m2.8c();
// @Filename: commentsExternalModules_file1.ts
-////*This is on import declaration
+///This is on import declaration
////import ex9tMod = require("./commentsExternalModules_file0");
-////10extMod./*11*/m1./*12*/fooExp/*13q*/ort(/*13*/);
-////var new14Var = new extMod.m1.m2./*15*/c();
+////10extMod.11m1./*12*/fooExp/*13q*/ort(/*13*/);
+////var new14Var = new extMod.m1.m2.15c();
goTo.file("commentsExternalModules_file0.ts");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,18 +1,18 @@
/// <reference path='fourslash.ts' />
-////* This comment should appear for foo
+/// This comment should appear for foo
////function f1oo() {
////}
-////f2oo/*3*/(/*4*/);
-////* This is comment for function signature
-////function fo5oWithParameters(/** this is comment about a*/a: string,
+////f2oo3(/*4*/);
+/// This is comment for function signature
+////function fo5oWithParameters(* this is comment about aa: string,
//// * this is comment for b
//// b: number) {
-//// var 6d = /*7*/a;
+//// var 6d = 7a;
////}
-////fooWithParam8eters/*9*/(/*10*/"a",/*11*/10);
+////fooWithParam8eters9(/*10*/"a",/*11*/10);
// ambient declaration
-////*
+///
/// Does something
/// @param a a string
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,8 +2,8 @@
// test arrow doc comments
-////* lamdaFoo var comment
-////var lamb1daFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => /*2*/a + b;
-////var lambddaN3oVarComment = /** this is lambda multiplication*/ (/**param a*/a: number, /**param b*/b: number) => a * b;
-////4lambdaFoo(/*5*/10, /*6*/20);
+/// lamdaFoo var comment
+////var lamb1daFoo = * this is lambda comment (/**param a*/a: number, /**param b*/b: number) => /*2*/a + b;
+////var lambddaN3oVarComment = * this is lambda multiplication (/**param a*/a: number, /**param b*/b: number) => a * b;
+////4lambdaFoo(510, /*6*/20);
// test nested arrow doc comments
@@ -11,7 +11,7 @@
//// * documentation
//// @param b {string} inner parameter
-//// var 8lambdaVar = /** inner docs */(/*9*/b: string) => {
+//// var 8lambdaVar = * inner docs (/*9*/b: string) => {
//// var 10localVar = "Hello ";
-//// return 11localVar + /*12*/b;
+//// return 11localVar + 12b;
//// }
//// return lamb13daVar("World") + a;
@@ -19,17 +19,17 @@
// test function expression doc comments
-////*
+///
//// * On variable
//// * @param s the first parameter!
//// * @returns the parameter's length
////
-////var assi14gned = /**
+////var assi14gned = *
//// * Summary on expression
//// * @param s param on expression
//// * @returns return on expression
-//// function(* On parameter */s: string) {
+//// function(* On parameter s: string) {
//// return 15s.length;
////}
-////assig16ned/*17*/(/*18*/"hey");
+////assig16ned17(/*18*/"hey");
verify.quickInfoAt(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @Filename: commentsImportDeclaration_file0.ts
-////* NamespaceComment
+/// NamespaceComment
////export namespace m21 {
//// * b's comment
@@ -20,8 +20,8 @@
// @Filename: commentsImportDeclaration_file1.ts
///////<reference path='commentsImportDeclaration_file0.ts'/>
-////* Import declaration
-////import 3extMod = require("./commentsImportDeclaration_file0/*4*/");
-////extMod.6m1./*7*/fooEx/*8q*/port(/*8*/);
-////var new9Var = new extMod.m1.m2./*10*/c();
+/// Import declaration
+////import 3extMod = require("./commentsImportDeclaration_file04");
+////extMod.6m1.7fooEx/*8q*/port(/*8*/);
+////var new9Var = new extMod.m1.m2.10c();
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////* i1 is interface with properties
+/// i1 is interface with properties
////interface i1 {
//// * i1_p1
@@ -43,32 +43,32 @@
//// public nc_l1: () => void;
////}
-////var i11iq_i: /*16i*/i1;
-////i1_i.1i/*2q*/1_f1(/*2*/);
-////i1_i.i1_n3qc_f1(/*3*/);
-////i1_i.f4q1(/*4*/);
-////i1_i.nc5q_f1(/*5*/);
-////i1_i.i1l2q_l1(/*l2*/);
-////i1_i.i1_l3qnc_l1(/*l3*/);
-////i1_i.ll4q1(/*l4*/);
-////i1_i.ncl5q_l1(/*l5*/);
+////var i11iq_i: 16ii1;
+////i1_i.1i2q1_f1(/*2*/);
+////i1_i.i1_n3qc_f1(3);
+////i1_i.f4q1(4);
+////i1_i.nc5q_f1(5);
+////i1_i.i1l2q_l1(l2);
+////i1_i.i1_l3qnc_l1(l3);
+////i1_i.ll4q1(l4);
+////i1_i.ncl5q_l1(l5);
////var c16iq_i = new c1();
-////c1_i.6i1/*7q*/_f1(/*7*/);
-////c1_i.i1_nc8q_f1(/*8*/);
-////c1_i.f9q1(/*9*/);
-////c1_i.nc10q_f1(/*10*/);
-////c1_i.i1l7q_l1(/*l7*/);
-////c1_i.i1_nl8qc_l1(/*l8*/);
-////c1_i.ll9q1(/*l9*/);
-////c1_i.ncl10q_l1(/*l10*/);
+////c1_i.6i17q_f1(/*7*/);
+////c1_i.i1_nc8q_f1(8);
+////c1_i.f9q1(9);
+////c1_i.nc10q_f1(10);
+////c1_i.i1l7q_l1(l7);
+////c1_i.i1_nl8qc_l1(l8);
+////c1_i.ll9q1(l9);
+////c1_i.ncl10q_l1(l10);
////// assign to interface
////i1_i = c1_i;
-////i1_i.11i1/*12q*/_f1(/*12*/);
-////i1_i.i1_nc13q_f1(/*13*/);
-////i1_i.f14q1(/*14*/);
-////i1_i.nc15q_f1(/*15*/);
-////i1_i.i1l12q_l1(/*l12*/);
-////i1_i.i1l13q_nc_l1(/*l13*/);
-////i1_i.ll14q1(/*l14*/);
-////i1_i.ncl15q_l1(/*l15*/);
+////i1_i.11i112q_f1(/*12*/);
+////i1_i.i1_nc13q_f1(13);
+////i1_i.f14q1(14);
+////i1_i.nc15q_f1(15);
+////i1_i.i1l12q_l1(l12);
+////i1_i.i1l13q_nc_l1(l13);
+////i1_i.ll14q1(l14);
+////i1_i.ncl15q_l1(l15);
////16
////class c2 {
@@ -111,5 +111,5 @@
//// cons56tructor() {
//// su18sqper(10);
-//// this.p1 = s18spropquper./*18spropProp*/c2_p1;
+//// this.p1 = s18spropquper.18spropPropc2_p1;
//// }
//// * c3 p1
@@ -129,23 +129,23 @@
//// }
////}
-////var c17iq2_i = new c/*17q*/2(/*17*/10);
-////var c18iq3_i = new c/*18q*/3(/*18*/);
-////c2_i.19c2/*20q*/_f1(/*20*/);
-////c2_i.c2_nc21q_f1(/*21*/);
-////c2_i.f22q1(/*22*/);
-////c2_i.nc23q_f1(/*23*/);
-////c3_i.24c2/*25q*/_f1(/*25*/);
-////c3_i.c2_nc26q_f1(/*26*/);
-////c3_i.f27q1(/*27*/);
-////c3_i.nc28q_f1(/*28*/);
+////var c17iq2_i = new c17q2(/*17*/10);
+////var c18iq3_i = new c18q3(/*18*/);
+////c2_i.19c220q_f1(/*20*/);
+////c2_i.c2_nc21q_f1(21);
+////c2_i.f22q1(22);
+////c2_i.nc23q_f1(23);
+////c3_i.24c225q_f1(/*25*/);
+////c3_i.c2_nc26q_f1(26);
+////c3_i.f27q1(27);
+////c3_i.nc28q_f1(28);
////// assign
////c2_i = c3_i;
-////c2_i.29c2/*30q*/_f1(/*30*/);
-////c2_i.c2_nc_31qf1(/*31*/);
-////c2_i.f32q1(/*32*/);
-////c2_i.nc33q_f1(/*33*/);
+////c2_i.29c230q_f1(/*30*/);
+////c2_i.c2_nc_31qf1(31);
+////c2_i.f32q1(32);
+////c2_i.nc33q_f1(33);
////class c4 extends c2 {
////}
-////var c434iq_i = new c/*34q*/4(/*34*/10);
+////var c434iq_i = new c34q4(/*34*/10);
////35
////interface i2 {
@@ -180,34 +180,34 @@
//// nc_l1: () => void;
////}
-////var i236iq_i: /*51i*/i2;
+////var i236iq_i: 51ii2;
////var i337iq_i: i3;
-////i2_i.36i2/*37q*/_f1(/*37*/);
-////i2_i.i2_n38qc_f1(/*38*/);
-////i2_i.f39q1(/*39*/);
-////i2_i.nc40q_f1(/*40*/);
-////i2_i.i2_l37ql1(/*l37*/);
-////i2_i.i2_ncl38q_l1(/*l38*/);
-////i2_i.ll39q1(/*l39*/);
-////i2_i.nc_l40ql1(/*l40*/);
-////i3_i.41i2_/*42q*/f1(/*42*/);
-////i3_i.i2_nc43q_f1(/*43*/);
-////i3_i.f44q1(/*44*/);
-////i3_i.nc_45qf1(/*45*/);
-////i3_i.i2_l42ql1(/*l42*/);
-////i3_i.i2_ncl43q_l1(/*l43*/);
-////i3_i.ll44q1(/*l44*/);
-////i3_i.nc_l45ql1(/*l45*/);
+////i2_i.36i237q_f1(/*37*/);
+////i2_i.i2_n38qc_f1(38);
+////i2_i.f39q1(39);
+////i2_i.nc40q_f1(40);
+////i2_i.i2_l37ql1(l37);
+////i2_i.i2_ncl38q_l1(l38);
+////i2_i.ll39q1(l39);
+////i2_i.nc_l40ql1(l40);
+////i3_i.41i2_42qf1(/*42*/);
+////i3_i.i2_nc43q_f1(43);
+////i3_i.f44q1(44);
+////i3_i.nc_45qf1(45);
+////i3_i.i2_l42ql1(l42);
+////i3_i.i2_ncl43q_l1(l43);
+////i3_i.ll44q1(l44);
+////i3_i.nc_l45ql1(l45);
////// assign to interface
////i2_i = i3_i;
-////i2_i.46i2/*47q*/_f1(/*47*/);
-////i2_i.i2_nc_48qf1(/*48*/);
-////i2_i.f49q1(/*49*/);
-////i2_i.nc50q_f1(/*50*/);
-////i2_i.i2_l47ql1(/*l47*/);
-////i2_i.i2_ncl48q_l1(/*l48*/);
-////i2_i.ll49q1(/*l49*/);
-////i2_i.nc_l50ql1(/*l50*/);
+////i2_i.46i247q_f1(/*47*/);
+////i2_i.i2_nc_48qf1(48);
+////i2_i.f49q1(49);
+////i2_i.nc50q_f1(50);
+////i2_i.i2_l47ql1(l47);
+////i2_i.i2_ncl48q_l1(l48);
+////i2_i.ll49q1(l49);
+////i2_i.nc_l50ql1(l50);
////51
-////*c5 class
+///c5 class
////class c5 {
//// public b: number;
@@ -217,5 +217,5 @@
//// const57ructor() {
//// 52super();
-//// this.d = 53super./*54*/b;
+//// this.d = 53super.54b;
//// }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////* this is interface 1
+/// this is interface 1
////interface i11 {
////}
@@ -8,5 +8,5 @@
////}
////var nc_4i1_i: nc_i1;
-////* this is interface 2 with memebers
+/// this is interface 2 with memebers
////interface i52 {
//// * this is x
@@ -22,24 +22,24 @@
//// [i: number]: number;
//// * this is call signature
-//// (*paramhelp aa: number,/**paramhelp b*/ b: number) : number;
+//// (*paramhelp aa: number,*paramhelp b b: number) : number;
//// * this is fnfoo
//// fnfoo(*param helpb: number): string;
//// nc_fnfoo(b: number): string;
////}
-////var i26_i: /*34i*/i2;
-////var i2_i7_x = i2_i./*8*/x;
-////var i2_i9_foo = i2_i.f/*10*/oo;
-////var i2_i_f11oo_r = i2_i.f/*12q*/oo(/*12*/30);
-////var i2_i_i2_13si = i2/*13q*/_i["hello"];
-////var i2_i_i214_ii = i2/*14q*/_i[30];
-////var i2_15i_n = new i2/*16q*/_i(/*16*/i1_i);
-////var i2_i17_nc_x = i2_i.n/*18*/c_x;
-////var i2_i_19nc_foo = i2_i.n/*20*/c_foo;
-////var i2_i_nc_f21oo_r = i2_i.nc/*22q*/_foo(/*22*/30);
-////var i223_i_r = i2/*24q*/_i(/*24*/10, /*25*/20);
-////var i2_i26_fnfoo = i2_i.fn/*27*/foo;
-////var i2_i_28fnfoo_r = i2_i.fn/*29q*/foo(/*29*/10);
-////var i2_i30_nc_fnfoo = i2_i.nc_fn/*31*/foo;
-////var i2_i_nc_32fnfoo_r = i2_i.nc/*33q*/_fnfoo(/*33*/10);
+////var i26_i: 34ii2;
+////var i2_i7_x = i2_i.8x;
+////var i2_i9_foo = i2_i.f10oo;
+////var i2_i_f11oo_r = i2_i.f12qoo(/*12*/30);
+////var i2_i_i2_13si = i213q_i["hello"];
+////var i2_i_i214_ii = i214q_i[30];
+////var i2_15i_n = new i216q_i(/*16*/i1_i);
+////var i2_i17_nc_x = i2_i.n18c_x;
+////var i2_i_19nc_foo = i2_i.n20c_foo;
+////var i2_i_nc_f21oo_r = i2_i.nc22q_foo(/*22*/30);
+////var i223_i_r = i224q_i(/*24*/10, /*25*/20);
+////var i2_i26_fnfoo = i2_i.fn27foo;
+////var i2_i_28fnfoo_r = i2_i.fn29qfoo(/*29*/10);
+////var i2_i30_nc_fnfoo = i2_i.nc_fn31foo;
+////var i2_i_nc_32fnfoo_r = i2_i.nc33q_fnfoo(/*33*/10);
////34
////interface i3 {
@@ -56,5 +56,5 @@
////var i3_i: i3;
////i3_i = {
-//// 35f: /**own f*/ (/**i3_i a*/a: number) => "Hello" + /*36*/a,
+//// 35f: *own f (/**i3_i a*/a: number) => "Hello" + /*36*/a,
//// l: this.37f,
//// * own x
@@ -64,8 +64,8 @@
//// nc_l: this.l
////};
-////40i/*40q*/3_i./*41*/f(/*42*/10);
-////i3_i.43ql(/*43*/10);
-////i3_i.nc_44qf(/*44*/10);
-////i3_i.nc45q_l(/*45*/10);
+////40i40q3_i./*41*/f(/*42*/10);
+////i3_i.43ql(4310);
+////i3_i.nc_44qf(4410);
+////i3_i.nc45q_l(4510);
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////* This is firstLine
+/// This is firstLine
//// * This is second Line
//// *
@@ -7,5 +7,5 @@
////
////var aa: string;
-////*
+///
//// * This is firstLine
//// * This is second Line
@@ -14,5 +14,5 @@
////
////var bb: string;
-////*
+///
//// * This is firstLine
//// * This is second Line
@@ -22,5 +22,5 @@
////
////var cc: string;
-////*
+///
//// * This is firstLine
//// * This is second Line
@@ -28,12 +28,12 @@
//// * @random tag This should be third line
////
-////function dd(param: string) { /*1*/param = "hello"; }
-////*
+////function dd(param: string) { 1param = "hello"; }
+///
//// * This is firstLine
//// * This is second Line
//// * @param param
////
-////function ee(param: string) { /*2*/param = "hello"; }
-////*
+////function ee(param: string) { 2param = "hello"; }
+///
//// * This is firstLine
//// * This is second Line
@@ -43,6 +43,6 @@
//// * @random tag This should be third line
////
-////function ff(param1: string) { /*3*/param1 = "hello"; }
-////*
+////function ff(param1: string) { 3param1 = "hello"; }
+///
//// * This is firstLine
//// * This is second Line
@@ -52,6 +52,6 @@
//// * @random tag This should be third line
////
-////function gg(param1: string) { /*4*/param1 = "hello"; }
-////*
+////function gg(param1: string) { 4param1 = "hello"; }
+///
//// * This is firstLine
//// * This is second Line
@@ -63,6 +63,6 @@
//// * @random tag This should be third line
////
-////function hh(param1: string) { /*5*/param1 = "hello"; }
-////*
+////function hh(param1: string) { 5param1 = "hello"; }
+///
//// * This is firstLine
//// * This is second Line
@@ -74,6 +74,6 @@
//// *
////
-////function ii(param1: string) { /*6*/param1 = "hello"; }
-////*
+////function ii(param1: string) { 6param1 = "hello"; }
+///
//// * This is firstLine
//// * This is second Line
@@ -84,6 +84,6 @@
//// * param information third line
////
-////function jj(param1: string) { /*7*/param1 = "hello"; }
-////*
+////function jj(param1: string) { 7param1 = "hello"; }
+///
//// * This is firstLine
//// * This is second Line
@@ -94,6 +94,6 @@
//// * random information third line
////
-////function kk(param1: string) { /*8*/param1 = "hello"; }
-////*
+////function kk(param1: string) { 8param1 = "hello"; }
+///
//// * This is firstLine
//// * This is second Line
@@ -105,5 +105,5 @@
//// * second time information about the param again
////
-////function ll(param1: string) { /*9*/param1 = "hello"; }
+////function ll(param1: string) { 9param1 = "hello"; }
//// *
//// * This is firstLine
@@ -113,5 +113,5 @@
//// second line text
////
-////function mm(param1: string) { /*10*/param1 = "hello"; }
+////function mm(param1: string) { 10param1 = "hello"; }
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////* Namespace comment
+/// Namespace comment
////namespace m11 {
//// * b's comment
@@ -19,10 +19,10 @@
//// * exported function
//// export function fooExport() {
-//// return fo3qo(/*3*/);
+//// return fo3qo(3);
//// }
////}
-////4m1./*5*/fooExport(/*6*/);
-////var my7var = new m1.m2./*8*/c();
-////* namespace comment of m2.m3
+////4m1.5fooExport(/*6*/);
+////var my7var = new m1.m2.8c();
+/// namespace comment of m2.m3
////namespace m2.m3 {
//// * Exported class comment
@@ -30,6 +30,6 @@
//// }
////}
-////new 9m2./*10*/m3./*11*/c();
-////* namespace comment of m3.m4.m5
+////new 9m2.10m3./*11*/c();
+/// namespace comment of m3.m4.m5
////namespace m3.m4.m5 {
//// * Exported class comment
@@ -37,6 +37,6 @@
//// }
////}
-////new 12m3./*13*/m4./*14*/m5./*15*/c();
-////* namespace comment of m4.m5.m6
+////new 12m3.13m4./*14*/m5./*15*/c();
+/// namespace comment of m4.m5.m6
////namespace m4.m5.m6 {
//// export namespace m7 {
@@ -46,6 +46,6 @@
//// }
////}
-////new 16m4./*17*/m5./*18*/m6./*19*/m7./*20*/c();
-////* namespace comment of m5.m6.m7
+////new 16m4.17m5./*18*/m6./*19*/m7./*20*/c();
+/// namespace comment of m5.m6.m7
////namespace m5.m6.m7 {
//// * namespace m8 comment
@@ -56,5 +56,5 @@
//// }
////}
-////new 21m5./*22*/m6./*23*/m7./*24*/m8./*25*/c();
+////new 21m5.22m6./*23*/m7./*24*/m8./*25*/c();
////namespace m6.m7 {
//// export namespace m8 {
@@ -64,5 +64,5 @@
//// }
////}
-////new 26m6./*27*/m7./*28*/m8./*29*/c();
+////new 26m6.27m7./*28*/m8./*29*/c();
////namespace m7.m8 {
//// * namespace m9 comment
@@ -73,5 +73,5 @@
//// }
////}
-////new 30m7./*31*/m8./*32*/m9./*33*/c();
+////new 30m7.31m8./*32*/m9./*33*/c();
////declare module "quotedM" {
//// export class c {
@@ -95,5 +95,5 @@
//// }
////}
-////var myComp35lexVal = new compl/*36*/exM.m/*37*/2./*38*/c().f/*39*/oo2().f/*40*/oo();
+////var myComp35lexVal = new compl36exM.m/*37*/2./*38*/c().f/*39*/oo2().f/*40*/oo();
verify.quickInfoAt("1", "namespace m1", "Namespace comment");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @Filename: commentsMultiModuleMultiFile_0.ts
-////* this is multi declare namespace
+/// this is multi declare namespace
////namespace mult3iM {
//// * class b
@@ -8,5 +8,5 @@
//// }
////}
-////* thi is multi namespace 2
+/// thi is multi namespace 2
////namespace mu2ltiM {
//// * class c comment
@@ -15,9 +15,9 @@
////}
////
-////new 1mu/*4*/ltiM.b();
+////new 1mu4ltiM.b();
////new mu5ltiM.c();
// @Filename: commentsMultiModuleMultiFile_1.ts
-////* this is multi namespace 3 comment
+/// this is multi namespace 3 comment
////namespace mu6ltiM {
//// * class d comment
@@ -25,5 +25,5 @@
//// }
////}
-////new 7mu/*8*/ltiM.d();
+////new 7mu8ltiM.d();
const comment =
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////* this is multi declare namespace
+/// this is multi declare namespace
////namespace mult3iM {
//// * class b
@@ -7,5 +7,5 @@
//// }
////}
-////* thi is multi namespace 2
+/// thi is multi namespace 2
////namespace mu2ltiM {
//// * class c comment
@@ -14,5 +14,5 @@
////}
////
-////new 1mu/*4*/ltiM.b();
+////new 1mu4ltiM.b();
////new mu5ltiM.c();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,21 +1,21 @@
/// <reference path='fourslash.ts' />
-////* this is signature 1
-////function 1f1(/**param a*/a: number): number;
+/// this is signature 1
+////function 1f1(*param aa: number): number;
////function 2f1(b: string): number;
////function 3f1(aOrb: any) {
//// return 10;
////}
-////f4q1(/*4*/"hello");
-////fo4q1(/*o4*/10);
-////function 5f2(/**param a*/a: number): number;
-////* this is signature 2
+////f4q1(4"hello");
+////fo4q1(o410);
+////function 5f2(*param aa: number): number;
+/// this is signature 2
////function 6f2(b: string): number;
-////* this is f2 var comment
+/// this is f2 var comment
////function 7f2(aOrb: any) {
//// return 10;
////}
-////f8q2(/*8*/"hello");
-////fo8q2(/*o8*/10);
+////f8q2(8"hello");
+////fo8q2(o810);
////function 9f3(a: number): number;
////function 10f3(b: string): number;
@@ -23,15 +23,15 @@
//// return 10;
////}
-////f12q3(/*12*/"hello");
-////fo12q3(/*o12*/10);
-////* this is signature 4 - with number parameter
-////function 13f4(/**param a*/a: number): number;
-////* this is signature 4 - with string parameter
+////f12q3(12"hello");
+////fo12q3(o1210);
+/// this is signature 4 - with number parameter
+////function 13f4(*param aa: number): number;
+/// this is signature 4 - with string parameter
////function 14f4(b: string): number;
////function 15f4(aOrb: any) {
//// return 10;
////}
-////f16q4(/*16*/"hello");
-////fo16q4(/*o16*/10);
+////f16q4(16"hello");
+////fo16q4(o1610);
////17
////interface i1 {
@@ -83,28 +83,28 @@
////}
////var i4_i: i4;
-////new 18i1/*19q*/_i(/*19*/10);
-////new i20q1_i(/*20*/"Hello");
-////i21q1_i(/*21*/10);
-////i22q1_i(/*22*/"hello");
-////i1_i.23f/*24q*/oo(/*24*/10);
-////i1_i.f25qoo(/*25*/"hello");
-////i1_i.fo26qo2(/*26*/10);
-////i1_i.fo27qo2(/*27*/"hello");
-////i1_i.fo28qo3(/*28*/10);
-////i1_i.fo29qo3(/*29*/"hello");
-////i1_i.fo30qo4(/*30*/10);
-////i1_i.fo31qo4(/*31*/"hello");
-////new i232q_i(/*32*/10);
-////new i233q_i(/*33*/"Hello");
-////i34q2_i(/*34*/10);
-////i235q_i(/*35*/"hello");
-////new i36q3_i(/*36*/10);
-////new i337q_i(/*37*/"Hello");
-////i338q_i(/*38*/10);
-////i339q_i(/*39*/"hello");
-////new i440q_i(/*40*/10);
-////new i41q4_i(/*41*/"Hello");
-////i442q_i(/*42*/10);
-////i443q_i(/*43*/"hello");
+////new 18i119q_i(/*19*/10);
+////new i20q1_i(20"Hello");
+////i21q1_i(2110);
+////i22q1_i(22"hello");
+////i1_i.23f24qoo(/*24*/10);
+////i1_i.f25qoo(25"hello");
+////i1_i.fo26qo2(2610);
+////i1_i.fo27qo2(27"hello");
+////i1_i.fo28qo3(2810);
+////i1_i.fo29qo3(29"hello");
+////i1_i.fo30qo4(3010);
+////i1_i.fo31qo4(31"hello");
+////new i232q_i(3210);
+////new i233q_i(33"Hello");
+////i34q2_i(3410);
+////i235q_i(35"hello");
+////new i36q3_i(3610);
+////new i337q_i(37"Hello");
+////i338q_i(3810);
+////i339q_i(39"hello");
+////new i440q_i(4010);
+////new i41q4_i(41"Hello");
+////i442q_i(4210);
+////i443q_i(43"hello");
////class c {
//// public 93prop1(a: number): number;
@@ -179,31 +179,31 @@
////}
////var c_i = new c();
-////c_i.44pro/*45q*/p1(/*45*/10);
-////c_i.pr46qop1(/*46*/"hello");
-////c_i.pr47qop2(/*47*/10);
-////c_i.pr48qop2(/*48*/"hello");
-////c_i.pro49qp3(/*49*/10);
-////c_i.pr50qop3(/*50*/"hello");
-////c_i.pr51qop4(/*51*/10);
-////c_i.pr52qop4(/*52*/"hello");
-////c_i.pr53qop5(/*53*/10);
-////c_i.pr54qop5(/*54*/"hello");
-////var c166_i_1 = new c/*55q*/1(/*55*/10);
-////var c1_i_2 = new c56q1(/*56*/"hello");
-////var c2_i_1 = new c57q2(/*57*/10);
-////var c672_i_2 = new c/*58q*/2(/*58*/"hello");
-////var c3_i_1 = new c59q3(/*59*/10);
-////var c683_i_2 = new c/*60q*/3(/*60*/"hello");
-////var c469_i_1 = new c/*61q*/4(/*61*/10);
-////var c4_i_2 = new c62q4(/*62*/"hello");
-////var c705_i_1 = new c/*63q*/5(/*63*/10);
-////var c5_i_2 = new c64q5(/*64*/"hello");
-////* This is multiOverload F1 1
+////c_i.44pro45qp1(/*45*/10);
+////c_i.pr46qop1(46"hello");
+////c_i.pr47qop2(4710);
+////c_i.pr48qop2(48"hello");
+////c_i.pro49qp3(4910);
+////c_i.pr50qop3(50"hello");
+////c_i.pr51qop4(5110);
+////c_i.pr52qop4(52"hello");
+////c_i.pr53qop5(5310);
+////c_i.pr54qop5(54"hello");
+////var c166_i_1 = new c55q1(/*55*/10);
+////var c1_i_2 = new c56q1(56"hello");
+////var c2_i_1 = new c57q2(5710);
+////var c672_i_2 = new c58q2(/*58*/"hello");
+////var c3_i_1 = new c59q3(5910);
+////var c683_i_2 = new c60q3(/*60*/"hello");
+////var c469_i_1 = new c61q4(/*61*/10);
+////var c4_i_2 = new c62q4(62"hello");
+////var c705_i_1 = new c63q5(/*63*/10);
+////var c5_i_2 = new c64q5(64"hello");
+/// This is multiOverload F1 1
////function multiOverload(a: number): string;
-////* This is multiOverload F1 2
+/// This is multiOverload F1 2
////function multiOverload(b: string): string;
-////* This is multiOverload F1 3
+/// This is multiOverload F1 3
////function multiOverload(c: boolean): string;
-////* This is multiOverload Implementation
+/// This is multiOverload Implementation
////function multiOverload(d): string {
//// return "Hello";
@@ -212,9 +212,9 @@
////multiOverl72oad("hello");
////multiOverl73oad(true);
-////* This is ambient F1 1
+/// This is ambient F1 1
////declare function ambientF1(a: number): string;
-////* This is ambient F1 2
+/// This is ambient F1 2
////declare function ambientF1(b: string): string;
-////* This is ambient F1 3
+/// This is ambient F1 3
////declare function ambientF1(c: boolean): boolean;
////65
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,25 +1,25 @@
/// <reference path='fourslash.ts' />
-////* This is my variable
+/// This is my variable
////var myV1ariable = 10;
////2
-////* d variable
+/// d variable
////var d = 10;
////myVariable = d;
////3
-////* foos comment
+/// foos comment
////function foo() {
////}
-////* fooVar comment
+/// fooVar comment
////var foo12Var: () => void;
////4
-////f5qoo(/*5*/);
-////fo6qoVar(/*6*/);
-////fo13oVar = f/*14*/oo;
+////f5qoo(5);
+////fo6qoVar(6);
+////fo13oVar = f14oo;
////7
-////f8qoo(/*8*/);
-////foo9qVar(/*9*/);
+////f8qoo(8);
+////foo9qVar(9);
////var fooVarVar = 9aqfooVar;
-////*class comment
+///class comment
////class c {
//// * constructor comment
@@ -27,11 +27,11 @@
//// }
////}
-////*instance comment
+///instance comment
////var i = new c();
////10
-////* interface comments
+/// interface comments
////interface i1 {
////}
-////*interface instance comments
+///interface instance comments
////var i1_i: i1;
////11
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
///<reference path="fourslash.ts" />
-////import 1 /*2*/
+////import 1 2
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @allowJs: true
// @Filename: in.js
-////* I am documentation
+/// I am documentation
//// * @param {'literal'} p1
//// * @param {"literal"} p2
@@ -12,5 +12,5 @@
//// return p1 + p2 + p3 + p4 + p5 + '.';
////}
-////f1('literal', 'literal', "o/*2*/ther1", 12);
+////f1('literal', 'literal', "o2ther1", 12);
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
////type U = "oof" | "rab";
////function f(x: T, ...args: U[]) { };
-////f("1", "/*2*/", "/*3*/");
+////f("1", "2", "/*3*/");
verify.completionsAt("1", ["foo", "bar"]);
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,17 +3,17 @@
// @allowJs: true
// @Filename: Foo.js
-//// * @/*1 */
+//// * @1
//// var v1;
////
-//// * @p/*2 */
+//// * @p2
//// var v2;
////
-//// * @param /*3 */
+//// * @param 3
//// var v3;
////
-//// * @param { n/*4 } bar */
+//// * @param { n4 } bar
//// var v4;
////
-//// * @type { n/*5 } */
+//// * @type { n5 }
//// var v5;
////
@@ -24,8 +24,8 @@
//// var v7;
////
-//// * @return { n/*8 } */
+//// * @return { n8 }
//// var v8;
////
-//// * /*9 */
+//// * 9
////
//// *
@@ -53,5 +53,5 @@
////
////
-//// * @param /*16 */
+//// * @param 16
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,5 +11,5 @@
// @Filename: f4.ts
-////0.* comment /*dotOnNumberExrpressions4*/
+////0.* comment dotOnNumberExrpressions4
// @Filename: f5.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -12,5 +12,5 @@
//// // inComment2
//// var v7 = '';
-//// /*inComment3
+//// inComment3
//// var v11 = '';
//// // inComment4
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,8 +7,8 @@
// @Filename: m2.ts
-////export {1, /*2*/ from "./m1"
+////export {1, 2 from "./m1"
////export {3} from "./m1"
////export {foo,4 from "./m1"
-////export {bar as 5, /*6*/ from "./m1"
+////export {bar as 5, 6 from "./m1"
////export {foo, bar, baz as b,7} from "./m1"
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,8 +8,8 @@
// @Filename: m2.ts
-////import {1, /*2*/ from "m1"
+////import {1, 2 from "m1"
////import {3} from "m1"
////import {foo,4 from "m1"
-////import {bar as 5, /*6*/ from "m1"
+////import {bar as 5, 6 from "m1"
////import {foo, bar, baz as b,7} from "m1"
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,5 +11,5 @@
////
////var foo: J[];
-////var [{ property1: { propertyOfI_1, }, 1 }, { /*2*/ }] = foo;
+////var [{ property1: { propertyOfI_1, }, 1 }, { 2 }] = foo;
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,6 +1,6 @@
/// <reference path="fourslash.ts" />
-////"1 /*2*/\/*3*/
-//// 4 \\/*5*/
+////"1 2\/*3*/
+//// 4 \\5
goTo.eachMarker(() => verify.completionListIsEmpty());
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,6 +1,6 @@
/// <reference path="fourslash.ts" />
-////"1 /*2*/\/*3*/
-//// 4 \\\/*5*/
+////"1 2\/*3*/
+//// 4 \\\5
//// 6
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,7 +1,7 @@
/// <reference path="fourslash.ts" />
-////0` $ { ${/*1*/ 10/*2*/ + 1.1/*3*/ /*4*/} 12312`/*5*/
+////0` $ { ${1 10/*2*/ + 1.1/*3*/ /*4*/} 12312`/*5*/
////
-////6`asdasd${/*7*/ 2 + 1.1 /*8*/} 12312 {
+////6`asdasd${7 2 + 1.1 /*8*/} 12312 {
goTo.eachMarker(() => verify.completionListItemsCountIsGreaterThan(0));
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,7 +1,7 @@
/// <reference path="fourslash.ts" />
-////`0 /*1*/$ /*2*/{ /*3*/$/*4*/{ 10 + 1.1 }/*5*/ 12312/*6*/`
+////`0 1$ /*2*/{ /*3*/$/*4*/{ 10 + 1.1 }/*5*/ 12312/*6*/`
////
-////`asdasd$7{ 2 + 1.1 }/*8*/ 12312 /*9*/{/*10*/
+////`asdasd$7{ 2 + 1.1 }8 12312 /*9*/{/*10*/
goTo.eachMarker(() => verify.completionListIsEmpty());
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts'/>
-//// type constructorType<T1, T2> = new <T1, /*2*/
+//// type constructorType<T1, T2> = new <T1, 2
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -33,6 +33,6 @@
////const y = <div 12 />; // no globals in jsx attribute found
////const z = <div =13 />; // no globals in jsx attribute with syntax error
-////const x = `14 ${/*15*/}`; // globals only in template expression
-////var user = <16User name=/*17*/{ /*18*/window.isLoggedIn ? window.name : '/*19*/'} />; // globals only in JSX expression (but not in JSX expression strings)
+////const x = `14 ${15}`; // globals only in template expression
+////var user = <16User name=17{ /*18*/window.isLoggedIn ? window.name : '/*19*/'} />; // globals only in JSX expression (but not in JSX expression strings)
goTo.marker("1");
verify.completionListIsGlobal(false);
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -12,5 +12,5 @@
////).requires(
//// 'otherstuff'
-////).defines(0/*1*/
+////).defines(01
////});
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
////}
-////var max2: Comparer = (x1x, y/*2*/y) => { return x/*3*/x.compareTo(y/*4*/y) };
+////var max2: Comparer = (x1x, y2y) => { return x/*3*/x.compareTo(y/*4*/y) };
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -13,5 +13,5 @@
////// CONTEXT: Class property declaration
////class C1T5 {
-//// 1foo: (i: number, s: string) => number = function(/*2*/i) {
+//// 1foo: (i: number, s: string) => number = function(2i) {
//// return 3i;
//// }
@@ -19,10 +19,10 @@
////// CONTEXT: Module property declaration
////module C2T5 {
-//// export var 4foo: (i: number, s: string) => number = function(/*5*/i) {
+//// export var 4foo: (i: number, s: string) => number = function(5i) {
//// return 6i;
//// }
////}
////// CONTEXT: Variable declaration
-////var 7c3t1: (s: string) => string = (function(/*8*/s) { return /*9*/s });
+////var 7c3t1: (s: string) => string = (function(8s) { return /*9*/s });
////var 10c3t2 = <IFoo>({
//// n: 1
@@ -30,19 +30,19 @@
////var 11c3t3: number[] = [];
////var 12c3t4: () => IFoo = function() { return <IFoo>({}) };
-////var 13c3t5: (n: number) => IFoo = function(/*14*/n) { return <IFoo>({}) };
-////var 15c3t6: (n: number, s: string) => IFoo = function(/*16*/n, /*17*/s) { return <IFoo>({}) };
+////var 13c3t5: (n: number) => IFoo = function(14n) { return <IFoo>({}) };
+////var 15c3t6: (n: number, s: string) => IFoo = function(16n, /*17*/s) { return <IFoo>({}) };
////var 18c3t7: {
//// (n: number): number;
//// (s1: string): number;
////};
-////var 20c3t8: (n: number, s: string) => number = function(/*21*/n) { return n; };
+////var 20c3t8: (n: number, s: string) => number = function(21n) { return n; };
////var 22c3t9: number[][] = [[],[]];
////var 23c3t10: IFoo[] = [<IFoo>({}),<IFoo>({})];
-////var 24c3t11: {(n: number, s: string): string;}[] = [function(/*25*/n, /*26*/s) { return s; }];
+////var 24c3t11: {(n: number, s: string): string;}[] = [function(25n, /*26*/s) { return s; }];
////var 27c3t12: IBar = {
//// 28foo: <IFoo>({})
////}
////var 29c3t13 = <IFoo>({
-//// 30f: function(/*31*/i, /*32*/s) { return s; }
+//// 30f: function(31i, /*32*/s) { return s; }
////})
////var 33c3t14 = <IFoo>({
@@ -53,5 +53,5 @@
//// 35foo: (i: number, s: string) => string;
//// constructor() {
-//// this.foo = function(36i, /*37*/s) {
+//// this.foo = function(36i, 37s) {
//// return s;
//// }
@@ -61,5 +61,5 @@
////module C5T5 {
//// export var 38foo: (i: number, s: string) => string;
-//// foo = function(39i, /*40*/s) {
+//// foo = function(39i, 40s) {
//// return s;
//// }
@@ -110,5 +110,5 @@
//// t14: IFoo;
////} = <IPlaceHolder>({});
-////objc8.45t1 = (function(/*46*/s) { return s });
+////objc8.45t1 = (function(46s) { return s });
////objc8.47t2 = <IFoo>({
//// n: 1
@@ -116,17 +116,17 @@
////objc8.48t3 = [];
////objc8.49t4 = function() { return <IFoo>({}) };
-////objc8.50t5 = function(/*51*/n) { return <IFoo>({}) };
-////objc8.52t6 = function(/*53*/n, /*54*/s) { return <IFoo>({}) };
+////objc8.50t5 = function(51n) { return <IFoo>({}) };
+////objc8.52t6 = function(53n, /*54*/s) { return <IFoo>({}) };
////objc8.55t7 = function(n: number) { return n };
-////objc8.56t8 = function(/*57*/n) { return n; };
+////objc8.56t8 = function(57n) { return n; };
////objc8.58t9 = [[],[]];
////objc8.59t10 = [<IFoo>({}),<IFoo>({})];
-////objc8.60t11 = [function (/*61*/n, /*62*/s) { return s; }];
+////objc8.60t11 = [function (61n, /*62*/s) { return s; }];
////objc8.63t12 = {
//// 64foo: <IFoo>({})
////}
////objc8.65t13 = <IFoo>({
-//// 66f: function(/*67*/i, /*68*/s) { return s; }
+//// 66f: function(67i, /*68*/s) { return s; }
////})
////objc8.69t14 = <IFoo>({
@@ -139,10 +139,10 @@
////});
////// CONTEXT: Return statement
-////var 72c10t5: () => (n: number) => IFoo = function() { return function(/*73*/n) { return <IFoo>({}) } };
+////var 72c10t5: () => (n: number) => IFoo = function() { return function(73n) { return <IFoo>({}) } };
////// CONTEXT: Newing a class
////class C11t5 { constructor(f: (n: number) => IFoo) { } };
////var i = new C11t5(function(74n) { return <IFoo>({}) });
////// CONTEXT: Type annotated expression
-////var 75c12t1 = <(s: string) => string> (function (/*76*/s) { return s });
+////var 75c12t1 = <(s: string) => string> (function (76s) { return s });
////var 77c12t2 = <IFoo> ({
//// n: 1
@@ -150,19 +150,19 @@
////var 78c12t3 = <number[]> [];
////var 79c12t4 = <() => IFoo> function() { return <IFoo>({}) };
-////var 80c12t5 = <(n: number) => IFoo> function(/*81*/n) { return <IFoo>({}) };
-////var 82c12t6 = <(n: number, s: string) => IFoo> function(/*83*/n, /*84*/s) { return <IFoo>({}) };
+////var 80c12t5 = <(n: number) => IFoo> function(81n) { return <IFoo>({}) };
+////var 82c12t6 = <(n: number, s: string) => IFoo> function(83n, /*84*/s) { return <IFoo>({}) };
////var 85c12t7 = <{
//// (n: number, s: string): number;
//// //(s1: string, s2: string): number;
////}> function(n:number) { return n };
-////var 86c12t8 = <(n: number, s: string) => number> function (/*87*/n) { return n; };
+////var 86c12t8 = <(n: number, s: string) => number> function (87n) { return n; };
////var 88c12t9 = <number[][]> [[],[]];
////var 89c12t10 = <IFoo[]> [<IFoo>({}),<IFoo>({})];
-////var 90c12t11 = <{ (n: number, s: string): string; }[]>[function (/*91*/n, /*92*/s) { return s; }];
+////var 90c12t11 = <{ (n: number, s: string): string; }[]>[function (91n, /*92*/s) { return s; }];
////var 93c12t12 = <IBar> {
//// 94foo: <IFoo>({})
////}
////var 95c12t13 = <IFoo> ({
-//// 96f: function(/*97*/i, /*98*/s) { return s; }
+//// 96f: function(97i, /*98*/s) { return s; }
////})
////var 99c12t14 = <IFoo> ({
@@ -172,5 +172,5 @@
////// contextually typing function declarations
////function EF1(a: number, b:number):number;
-////function 101EF1(/*102*/a,/*103*/b) { return a+b; }
+////function 101EF1(102a,/*103*/b) { return a+b; }
////var efv = EF1(1,2);
////// contextually typing from ambient class declarations
@@ -183,6 +183,6 @@
//// static origin: Point;
////}
-////Point.110origin = new /*111*/Point(0, 0);
-////Point.prototype.112add = function (/*113*/dx, /*114*/dy) {
+////Point.110origin = new 111Point(0, 0);
+////Point.prototype.112add = function (113dx, /*114*/dy) {
//// return new Point(this.x + dx, this.y + dy);
////};
@@ -190,5 +190,5 @@
//// x: 0,
//// y: 0,
-//// 115add: function (/*116*/dx, /*117*/dy) {
+//// 115add: function (116dx, /*117*/dy) {
//// return new Point(this.x + dx, this.y + dy);
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////interface A { }
-////var f44: (x: A) => (y: A) => A = 1x => /*2*/y => /*3*/x;
+////var f44: (x: A) => (y: A) => A = 1x => 2y => /*3*/x;
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
////}
////var o: Foo = {
-//// bar: function (x1y, opt/*2*/ions = {}) {
+//// bar: function (x1y, opt2ions = {}) {
//// // expect xy to have type string, and options to have type FooOptions in here
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -26,5 +26,5 @@
////class C {
-////0 /*1*/
+////0 1
//// foo();
//// 2foo(a);
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @Filename: justAComment.ts
-//// /*0 */
+//// 0
goTo.marker("0");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @Filename: functionDecl.ts
-////f0unction /*1*/foo/*2*/(/*3*/) /*4*/{ /*5*/}
+////f0unction 1foo/*2*/(/*3*/) /*4*/{ /*5*/}
goTo.eachMarker(() => verify.noDocCommentTemplate());
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @Filename: regex.ts
-////var regex = 0//*1*/asdf/*2*/ /*3*///*4*/;
+////var regex = 0/1asdf/*2*/ /*3*///*4*/;
goTo.eachMarker(() => verify.noDocCommentTemplate());
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////}
////declare var v1: Int<string>;
-////var 1v2/*2*/: Int<number> = v1;
+////var 1v22: Int<number> = v1;
goTo.eof();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -13,5 +13,5 @@
////var t: 1test; // var 't' should be of type 'test'
////var 2r1 = t(); // Should return a Date
-////var 3r2 = t./*4*/foo; // t should have 'foo' in dropdown list and be of type 'string'
+////var 3r2 = t.4foo; // t should have 'foo' in dropdown list and be of type 'string'
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,6 +3,6 @@
////var x = [1, 2, 3];
////x.1concat([4]);
-////x.2foo/*3*/()./*6*/toExponential/*7*/(2);
-////x.4foo/*5*/()./*8*/charAt/*9*/(0);
+////x.2foo3()./*6*/toExponential/*7*/(2);
+////x.4foo5()./*8*/charAt/*9*/(0);
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////var x = [1, 2, 3];
-////var yy = /*1*/x.pop(5)/*2*/;
+////var yy = 1x.pop(5)/*2*/;
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -21,10 +21,10 @@
////import 1a1 = require("./externalModuleWithExportAssignment_file0");
////export var 2a = a1;
-////a.3test1(/*4*/null, null, null);
-////var 6r1 = a.test2(/*5*/);
-////var 8r2 = a(/*7*/);
-////a1.9test1(/*10*/null, null, null);
-////var 12r3 = a1.test2(/*11*/);
-////var 14r4 = a1(/*13*/);
+////a.3test1(4null, null, null);
+////var 6r1 = a.test2(5);
+////var 8r2 = a(7);
+////a1.9test1(10null, null, null);
+////var 12r3 = a1.test2(11);
+////var 14r4 = a1(13);
////var v1: a1.15connectExport;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// exec: (filename: string, cmdLine: string) => boolean;
////}
-////class 1NodeExec/*2*/ implements IExec { }
+////class 1NodeExec2 implements IExec { }
verify.errorExistsBetweenMarkers("1", "2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////declare function f<T>(x: T, y: (p: T) => T, z: (p: T) => T): T;
-////var 1result = /*2*/f(0, /*3*/x => null, /*4*/x => x.blahblah);
+////var 1result = 2f(0, /*3*/x => null, /*4*/x => x.blahblah);
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,19 +1,19 @@
/// <reference path='fourslash.ts' />
-////1/** 1
+////1* 1
//// *22
-////3 3*/
+////3 3
////
////class Foo {
-////4/**4
+////4*4
//// *55
////6 *6
-////7 7*/
+////7 7
//// bar() {
-////8 /**8
+////8 *8
//// *99
////10 *10
////11 *11
-////12 12*/
+////12 12
//// }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,6 +6,6 @@
////
////export
-////exportOpenBrace{x,/*exportSpecifier1*/
-////y as yy, zexportSpecifier2 }/*exportCloseBrace*/
+////exportOpenBrace{x,exportSpecifier1
+////y as yy, zexportSpecifier2 }exportCloseBrace
//// fromfromKeywordAutoformat
////fromKeywordIndent
@@ -14,5 +14,5 @@
////import {x, y as yy, z}from "baz"import1
////
-////importimportOpenBrace{x,/*importSpecifier1*/
+////importimportOpenBrace{x,importSpecifier1
////y
////as yy,importSpecifier2
@@ -21,6 +21,6 @@
////selectionEnd
////
-////exportformatOnEnter{/*formatOnEnterOpenBrace*/
-////differentLineIndentx/*differentLineAutoformat*/
+////exportformatOnEnter{formatOnEnterOpenBrace
+////differentLineIndentxdifferentLineAutoformat
////} from "abc"
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////0function listAPIFiles(path: string): string[] {/*1*/ }
+////0function listAPIFiles(path: string): string[] {1 }
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// // b
//// baz();
-////0 // d /*1*/asd a
+////0 // d 1asd a
//// // e
//// foo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////var x = function() {
//// if (true) {
-//// 1} else {/*2*/
+//// 1} else {2
////}
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////if (a === 1 ||
-//// 0b === 2 ||/*1*/
+//// 0b === 2 ||1
//// c === 3) {
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////var x = function() {
//// if (true) {
-//// 1} else {/*2*/
+//// 1} else {2
////}
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
//// switch (j) {
//// case 1:
-////1 /* when current checkbox has focus, Firefox has changed check state already
+////1 when current checkbox has focus, Firefox has changed check state already
////2 on SPACE bar press only
////3 IE does not have issue, use the CSS class
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
//// switch (j) {
//// case 1:
-////1 /* when current checkbox has focus, Firefox has changed check state already
+////1 when current checkbox has focus, Firefox has changed check state already
////2 on SPACE bar press only
////3 IE does not have issue, use the CSS class
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,7 +3,7 @@
////Promise
//// .resolve()
-//// .then(() => {1""/*2*/
-////}).then(() => {3/*4*/
-////})semi1/*semi2*/
+//// .then(() => {1""2
+////}).then(() => {34
+////})semi1semi2
////function foo() {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
////3 for (var i = 0; i < 10; i++)
////4 i -= 2
-////5 }/*1*/while (1 !== 1)
+////5 }1while (1 !== 1)
goTo.marker("1");
edit.insert("\r\n");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////var x = 1"unclosed string literal\/*2*/
+////var x = 1"unclosed string literal\2
goTo.marker("2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -77,11 +77,11 @@
////66 function pageLoad ( ) {
////67 var webclass=[
-////68 { 'student' :/*69*/
+////68 { 'student' :69
////70 { 'id': '1', 'name': 'Linda Jones', 'legacySkill': 'Access, VB 5.0' }
////71 } ,
-////72{ 'student':/*73*/
+////72{ 'student':73
////74{'id':'2','name':'Adam Davidson','legacySkill':'Cobol,MainFrame'}
////75} ,
-////76 { 'student':/*77*/
+////76 { 'student':77
////78{ 'id':'3','name':'Charles Boyer' ,'legacySkill':'HTML, XML'}
////79}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////2do{
-////3do/*1*/{
+////3do1{
////4do{
////5}while(a!==b)
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,10 +1,10 @@
/// <reference path='fourslash.ts' />
-////var x = 1{foo:/*2*/ 1,
+////var x = 1{foo:2 1,
////bar: "tt",3
-////boo: 41 + 5}/*5*/;
+////boo: 41 + 5}5;
////
-////var x2 = 6{foo/*7*/: 1,
-////bar: 8"tt",boo:1+5}/*9*/;
+////var x2 = 6{foo7: 1,
+////bar: 8"tt",boo:1+5}9;
////
////function Foo() {10
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -23,5 +23,5 @@
////21for(var j=0;j<10;j++){
////22j-=i
-////23}/*24*/}
+////23}24}
////25function foo() {
////26try {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
///<reference path="fourslash.ts"/>
-////removeAllButLast(sortedTypes, undefinedType, /keepNullableType* true)1*/
+////removeAllButLast(sortedTypes, undefinedType, /keepNullableType* true)1
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,9 +3,9 @@
////if (true)
////{
-////1debugger;/*end1*/
+////1debugger;end1
////if (true)
-////2debugger;/*end2*/
+////2debugger;end2
////if (true) {
-////3debugger;/*end3*/
+////3debugger;end3
////}
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////f(
-////2 */() => { /*1*/ });
+////2 () => { 1*/ });
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -12,5 +12,5 @@
// Optionally, markers may have names:
-//// function.go(1x, /*2*/y);
+//// function.go(1x, 2y);
// goTo.marker('1');
// Marker names may consist of any alphanumeric characters
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts" />
-////class Foo { public bar1/*2*/() { } }
+////class Foo { public bar12() { } }
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,5 +9,5 @@
//// declare var v1: Int<string>;
////
-//// var 1v2/*2*/: Int<number> = v1;
+//// var 1v22: Int<number> = v1;
verify.errorExistsBetweenMarkers("1", "2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -29,25 +29,25 @@
////var rf3 = (x: A) => { return x.foo() };
-////var 9r1a = _.map(c2, (/*1*/x) => { return x.toFixed() });
+////var 9r1a = _.map(c2, (1x) => { return x.toFixed() });
////var 10r1b = _.map(c2, rf1);
-////var 11r2a = _.map(c3, (/*2*/x: Collection<number>) => { return x.length });
+////var 11r2a = _.map(c3, (2x: Collection<number>) => { return x.length });
////var 12r2b = _.map(c3, rf2);
-////var 13r3a = _.map(c4, (/*3*/x) => { return x.foo() });
+////var 13r3a = _.map(c4, (3x) => { return x.foo() });
////var 14r3b = _.map(c4, rf3);
-////var 15r4a = _.map(c5, (/*4*/x) => { return x.foo(1) });
+////var 15r4a = _.map(c5, (4x) => { return x.foo(1) });
-////var 17r5a = _.map<number, string>(c2, (/*5*/x) => { return x.toFixed() });
+////var 17r5a = _.map<number, string>(c2, (5x) => { return x.toFixed() });
////var 18r5b = _.map<number, string>(c2, rf1);
-////var 19r6a = _.map<Collection<number>, number>(/*6*/c3, (x: Collection<number>) => { return x.length });
+////var 19r6a = _.map<Collection<number>, number>(6c3, (x: Collection<number>) => { return x.length });
////var 20r6b = _.map<Collection<number>, number>(c3, rf2);
-////var 21r7a = _.map<A, A>(c4, (/*7*/x: A) => { return x.foo() });
+////var 21r7a = _.map<A, A>(c4, (7x: A) => { return x.foo() });
////var 22r7b = _.map<A, A>(c4, rf3);
-////var 23r8a = _.map</*error1*/B/*error2*/, string>(c5, (/*8*/x) => { return x.foo() });
+////var 23r8a = _.map<error1B/*error2*/, string>(c5, (/*8*/x) => { return x.foo() });
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -33,27 +33,27 @@
////var rf3 = (x: number, y: A) => { return y.foo() };
////}
-////var 9r1a = _.map/*1c*/(c2, (/*1a*/x, /*1b*/y) => { return x.toFixed() });
+////var 9r1a = _.map1c(c2, (/*1a*/x, /*1b*/y) => { return x.toFixed() });
////var 10r1b = _.map(c2, rf1);
////}
-////var 11r2a = _.map(c3, (/*2a*/x, /*2b*/y) => { return x.length });
+////var 11r2a = _.map(c3, (2ax, /*2b*/y) => { return x.length });
////var 12r2b = _.map(c3, rf2);
////}
-////var 13r3a = _.map(c4, (/*3a*/x, /*3b*/y) => { return y.foo() });
+////var 13r3a = _.map(c4, (3ax, /*3b*/y) => { return y.foo() });
////var 14r3b = _.map(c4, rf3);
////}
-////var 15r4a = _.map(c5, (/*4a*/x, /*4b*/y) => { return y.foo() });
+////var 15r4a = _.map(c5, (4ax, /*4b*/y) => { return y.foo() });
////}
-////var 17r5a = _.map<number, string, Date>(c2, /*17error1*/(/*5a*/x, /*5b*/y) => { return x.toFixed() }/*17error2*/);
+////var 17r5a = _.map<number, string, Date>(c2, 17error1(/*5a*/x, /*5b*/y) => { return x.toFixed() }/*17error2*/);
////var rf1b = (x: number, y: string) => { return new Date() };
////var 18r5b = _.map<number, string, Date>(c2, rf1b);
////
-////var 19r6a = _.map<Collection<number, number>, string, Date>(c3, (/*6a*/x,/*6b*/y) => { return new Date(); });
+////var 19r6a = _.map<Collection<number, number>, string, Date>(c3, (6ax,/*6b*/y) => { return new Date(); });
////var rf2b = (x: Collection<number, number>, y: string) => { return new Date(); };
////var 20r6b = _.map<Collection<number, number>, string, Date>(c3, rf2b);
////
-////var 21r7a = _.map<number, A, string>(c4, /*21error1*/(/*7a*/x,/*7b*/y) => { return y.foo() }/*21error2*/);
-////var 22r7b = _.map<number, A, string>(c4, /*22error1*/rf3/*22error2*/);
+////var 21r7a = _.map<number, A, string>(c4, 21error1(/*7a*/x,/*7b*/y) => { return y.foo() }/*21error2*/);
+////var 22r7b = _.map<number, A, string>(c4, 22error1rf3/*22error2*/);
////
-////var 23r8a = _.map<number, /*error1*/B/*error2*/, string>(c5, (/*8a*/x,/*8b*/y) => { return y.foo() });
+////var 23r8a = _.map<number, error1B/*error2*/, string>(c5, (/*8a*/x,/*8b*/y) => { return y.foo() });
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -13,5 +13,5 @@
////var _: Combinators;
////
-////var 9r1a = _.ma/*1c*/p(c2, (/*1a*/x,/*1b*/y) => { return x + "" }); // check quick info of map here
+////var 9r1a = _.ma1cp(c2, (/*1a*/x,/*1b*/y) => { return x + "" }); // check quick info of map here
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,6 +6,6 @@
////}
-////var 2r = foo(/*1*/1, "");
-////var 4r2 = r(/*3*/"");
+////var 2r = foo(11, "");
+////var 4r2 = r(3"");
// goTo.marker('1');
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,6 +9,6 @@
////var x = new C(1);
-////var 2r = x.foo(/*1*/3);
-////var 4r2 = r(/*3*/4);
+////var 2r = x.foo(13);
+////var 4r2 = r(34);
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -13,7 +13,7 @@
////declare var _: Underscore;
////var aa: string[];
-////var b1b = _.map(aa, x/*7*/x => xx.length); // should be number[]
-////var c2c = _(aa).map(x/*8*/x => xx.length); // should be number[]
-////var d3d = aa.map(xx => x/*9*/x.length); // should be number[]
+////var b1b = _.map(aa, x7x => xx.length); // should be number[]
+////var c2c = _(aa).map(x8x => xx.length); // should be number[]
+////var d3d = aa.map(xx => x9x.length); // should be number[]
////var aaa: any[];
////var b4bb = _.map(aaa, xx => xx.length); // should be any[]
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -13,8 +13,8 @@
////
////declare var _: Underscore.Static;
-////var 1r = _./*11*/all([true, 1, null, 'yes'], _.identity);
-////var 2r2 = _./*21*/all([true], _.identity);
-////var 3r3 = _./*31*/all([], _.identity);
-////var 4r4 = _./*41*/all([<any>true], _.identity);
+////var 1r = _.11all([true, 1, null, 'yes'], _.identity);
+////var 2r2 = _.21all([true], _.identity);
+////var 3r3 = _.31all([], _.identity);
+////var 4r4 = _.41all([<any>true], _.identity);
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -13,8 +13,8 @@
////
////declare var _: Underscore.Static;
-////var 1r = _./*11*/all([true, 1, null, 'yes'], _.identity);
-////var 2r2 = _./*21*/all([true], _.identity);
-////var 3r3 = _./*31*/all([], _.identity);
-////var 4r4 = _./*41*/all([<any>true], _.identity);
+////var 1r = _.11all([true, 1, null, 'yes'], _.identity);
+////var 2r2 = _.21all([true], _.identity);
+////var 3r3 = _.31all([], _.identity);
+////var 4r4 = _.41all([<any>true], _.identity);
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @type {number}
+/// @type {number}
////var v;
////v.
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////*
+///
//// * @type {function(this:number)}
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @type {number|string}
+/// @type {number|string}
////var v;
////v.
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////*
+///
//// * @param {number} input
//// * @param {string} currency
@@ -19,8 +19,8 @@
////}
////convert(1, "").3
-////*
+///
//// * @param {number} x
////
-////var test1 = function(x) { return x.4 }, test2 = function(a) { return a./*5*/ };
+////var test1 = function(x) { return x.4 }, test2 = function(a) { return a.5 };
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @type {(number|string)}
+/// @type {(number|string)}
////var v;
////v.
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @type {Array.<number>}
+/// @type {Array.<number>}
////var v;
////v.
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @return {number}
+/// @return {number}
////function foo(a,b) { }
////foo(1,2).
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////*
+///
//// * @param {...number} a
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////*
+///
//// * @param {...number} a
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////*
+///
//// * @type {function(): number}
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////*
+///
//// * @type {function(new:number)}
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @type {function(new:string,number)}
+/// @type {function(new:string,number)}
////var v;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @param {number} [a]
+/// @param {number} [a]
////function f(a) { }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @param {number[]} [a]
+/// @param {number[]} [a]
////function f(a) { }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @param {[number,string]} [a]
+/// @param {[number,string]} [a]
////function f(a) { }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @param {{b:number}} [a]
+/// @param {{b:number}} [a]
////function f(a) { }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @allowNonTsExtensions: true
// @Filename: Foo.js
-////* @type {function(this:number)}
+/// @type {function(this:number)}
////function f() { this }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////export const class C {
-//// private static c1onst f/*2*/oo;
+//// private static c1onst f2oo;
//// constructor(public con3st foo) {
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -10,5 +10,5 @@
//// else {
//// 1if (false)
-//// 2i/*3*/f (true)
+//// 2i3f (true)
//// var x = undefined;
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -16,5 +16,5 @@
////else8 if (null) {
////}
-////else9 /* whar garbl */ if/*10*/ (undefined) {
+////else9 whar garbl if/*10*/ (undefined) {
////}
////else11
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
////[|else if|] ()
////[|else if|]
-////[|else|] whar garbl [|if|] (i/**/f (true) { } else { })
+////[|else|] whar garbl [|if|] (if (true) { } else { })
////else
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////try {
-//// [|t1r/*2*/y|] {
+//// [|t1r2y|] {
//// }
//// [|c3atch|] (x) {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,5 +7,5 @@
//// }
////
-//// [|t1r/*2*/y|] {
+//// [|t1r2y|] {
//// }
//// [|finall3y|] {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,5 +9,5 @@
//// try4 {
//// }
-//// finally5 {/*8*/
+//// finally5 {8
//// }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,11 +11,11 @@
// @ResolveReference: true
//// ///<reference path="refFile1.ts" />
-//// 1///<reference path = "NotExistRef.ts" />/*2*/
-//// 3///<reference path "invalidRefFile1.ts" />/*4*/
+//// 1///<reference path = "NotExistRef.ts" />2
+//// 3///<reference path "invalidRefFile1.ts" />4
//// import ref2 = require("refFile2");
-//// import noExistref2 = require(5"NotExistRefFile2"/*6*/);
-//// import invalidRef1 7require/*8*/("refFile2");
-//// import invalidRef2 = 9requi/*10*/(/*10A*/"refFile2");
-//// var obj: 11C/*12*/;
+//// import noExistref2 = require(5"NotExistRefFile2"6);
+//// import invalidRef1 7require8("refFile2");
+//// import invalidRef2 = 9requi10(/*10A*/"refFile2");
+//// var obj: 11C12;
//// var obj1: D;
//// var obj2: ref2.E;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
// @declaration: true
//// interface privateInterface {}
-//// export class Bar implements 1privateInterface/*2*/{ }
+//// export class Bar implements 1privateInterface2{ }
verify.errorExistsBetweenMarkers("1", "2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// interface privateInterface {}
-//// export class Bar implements 1privateInterface/*2*/{ }
+//// export class Bar implements 1privateInterface2{ }
verify.noErrors();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -20,5 +20,5 @@
////
//// var p4: MyPoint = {
-//// x1: 5 /*6*/,
+//// x1: 5 6,
//// };
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @Filename: a.ts
-////declare module 2"external/*1*/" {
+////declare module 2"external1" {
//// class Foo { }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -10,8 +10,8 @@
////
////class selfDefinitionBar {
-//// public _interface: IFointerfaceReferenceo = new Fo/*classReferenceInInitializer*/o();
+//// public _interface: IFointerfaceReferenceo = new FoclassReferenceInInitializero();
//// public _class: FoclassReferenceo = new Foo();
//// public _list: IFinterfaceReferenceInListoo[]=[];
-//// public _enum: EenumReferencenum = En/*enumReferenceInInitializer*/um.value1;
+//// public _enum: EenumReferencenum = EnenumReferenceInInitializerum.value1;
//// public _self: BaselfReferencer;
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////class barDefinitionBar { }
////
-////var x = new FofooReferenceo<Ba/*barReference*/r>();
+////var x = new FofooReferenceo<BabarReferencer>();
verify.goToDefinitionForMarkers("bar", "foo");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// var valueDeclaration2id = 100000;
//// declare var valueDeclaration3id;
-//// var obj = {valueDefinition1name, /*valueDefinition2*/id};
+//// var obj = {valueDefinition1name, valueDefinition2id};
//// obj.valueReference1name;
//// obj.valueReference2id;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
////class clsC {
//// constructor() { return clsUsethis; }
-//// get self(getterDeclthis: number) { return /*getterUse*/this; }
+//// get self(getterDeclthis: number) { return getterUsethis; }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
//// class classDeclarationA {}
-//// function f(parameterDeclarationparameter: any): /*parameterName*/parameter is /*typeReference*/A {
+//// function f(parameterDeclarationparameter: any): parameterNameparameter is /*typeReference*/A {
//// return typeof parameter === "string";
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,9 +3,9 @@
// Should handle namespace and module implementations with qualified names
-//// implementation0namespace Foo./*implementation2*/Baz {
+//// implementation0namespace Foo.implementation2Baz {
//// export function hello() {}
//// }
////
-//// implementation1module Bar./*implementation3*/Baz {
+//// implementation1module Bar.implementation3Baz {
//// export function sure() {}
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,7 +1,7 @@
/// <reference path="fourslash.ts"/>
-//// var 1export/*2*/;
+//// var 1export2;
//// var foo;
-//// var 3class/*4*/;
+//// var 3class4;
//// var bar;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,5 +11,5 @@
//// "baseUrl": ".",
//// "paths": {
-//// "b": [ "folder_b/*" ]
+//// "b": [ "folder_b" ]
//// }
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,7 +4,7 @@
//// class Foo { xyz: string; }
-//// class 1Bar/*2*/ extends Foo { xyz: number; }
-//// class 3Baz/*4*/ extends Foo { public xyz: number; }
-//// class 5Baf/*6*/ extends Foo {
+//// class 1Bar2 extends Foo { xyz: number; }
+//// class 3Baz4 extends Foo { public xyz: number; }
+//// class 5Baf6 extends Foo {
//// constructor(public xyz: number) {
//// super();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
//// public f() {
//// return 0;
-//// 1}/*2*/
+//// 1}2
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,8 +9,8 @@
////this.bar = bar;
////}
-////* /*1
-/// This document is to be formatted./*2
-/// /*3
-/// After formatting, each line of this comment block should have indent consistent with the method./*4
+/// /*1
+/// This document is to be formatted.2
+/// 3
+/// After formatting, each line of this comment block should have indent consistent with the method.4
///
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// self: G<T>; // Use T as type argument to form instance type
//// f() {
-//// this.1self = /*2*/this; // self and this are both of type G<T>
+//// this.1self = 2this; // self and this are both of type G<T>
//// }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// Ensure there is only one error here and that it is in the type ref of the base
-//// interface x extends 1string/*2*/ { }
+//// interface x extends 1string2 { }
verify.errorExistsBetweenMarkers("1", "2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////function b(...1)/*2*/ {}
+////function b(...1)2 {}
verify.errorExistsBetweenMarkers("1", "2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
///<reference path="fourslash.ts" />
-////* DOC
+/// DOC
////type T = number
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @allowJs: true
// @Filename: Foo.js
-////*
+///
//// * Do some foo things
//// * @template T A Foolish template
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @allowJs: true
// @Filename: Foo.js
-////*
+///
//// * @type {{ [name: string]: string; }} variables
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @allowJs: true
// @Filename: Foo.js
-////*
+///
//// * @param {{ stringProp: string,
//// * numProp: number }} o
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @Filename: Foo.js
-////*
+///
//// * Filters a path based on a regexp or glob pattern.
//// * @param {String} basePath The base path where the search will be performed.
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @allowJs: true
// @Filename: Foo.js
-////*
+///
//// * @param {string} p1 - A string param
//// * @param {string?} p2 - An optional param
@@ -9,5 +9,5 @@
////
////function f1(p1, p2, p3, p4){}
-////f1(1'foo', /*2*/'bar', /*3*/'baz', /*4*/'qux');
+////f1(1'foo', 2'bar', /*3*/'baz', /*4*/'qux');
goTo.marker("1");
verify.currentParameterHelpArgumentDocCommentIs("- A string param");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @allowJs: true
// @Filename: Foo.js
-////*
+///
//// * @param {string} p0
//// * @param {string} [p1]
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @allowJs: true
// @Filename: Foo.js
-////*
+///
//// * Represents a person
//// * a b multiline test
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @allowJs: true
// @Filename: Foo.js
-////* first line of the comment
+/// first line of the comment
////
////third line
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @Filename: Foo.js
-////*
+///
//// * @param {T[]} arr
//// * @param {(function(T):T)} valuator
@@ -12,5 +12,5 @@
//// return arr;
////}
-////var a1 = SortFilter([0, 1, 2], q/*2*/ => q);
+////var a1 = SortFilter([0, 1, 2], q2 => q);
////var b3 = SortFilter([0, 1, 2], undefined);
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
// @allowJs: true
// @Filename: dummy.js
-////*
+///
//// * Find an item
//// * @template T
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -50,8 +50,8 @@
//// newMethod() {}
//// }
-//// var foo = new 1Foo(/*10*/4);
-//// 2Foo./*3*/method1(/*11*/);
-//// foo.4method2(/*12*/);
-//// foo.5method3(/*13*/);
+//// var foo = new 1Foo(104);
+//// 2Foo.3method1(/*11*/);
+//// foo.4method2(12);
+//// foo.5method3(13);
//// foo.6method4();
//// foo.7property1;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// declare var React: any;
////
-//// var x = <div a="2" b={/*3*/}>
+//// var x = <div a="2" b={3}>
//// 1
//// </div>;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////function foo() {
//// let 3b = 20;
-//// 4b = /*5*/a;
+//// 4b = 5a;
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
////}
////declare function ctx(callback: (this: A) => string): string;
-////ctx(function () { return th1is./*2*/a });
+////ctx(function () { return th1is.2a });
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -13,6 +13,6 @@
///////<reference path='mergedDeclarationsWithExportAssignment1_file0.ts'/>
////import 1Foo = require('./mergedDeclarationsWithExportAssignment1_file0');
-////var 3z = new /*2*/Foo();
-////var 5r2 = Foo./*4*/x;
+////var 3z = new 2Foo();
+////var 5r2 = Foo.4x;
verify.quickInfoAt(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts" />
-////module Alpha1/*2*/ { class Foo { public bar() { } } }
+////module Alpha12 { class Foo { public bar() { } } }
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,12 +1,12 @@
/// <reference path='fourslash.ts' />
-////function test() 1/* %^ */
+////function test() 1 %^
////{
-//// if (true) 2/* %^ */
+//// if (true) 2 %^
//// {
//// }
////}
////function a() {
-//// %^ }/*3*/
+//// %^ }3
format.document();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -17,6 +17,6 @@
////}
////
-////var c = new C1(C./*2*/x);
-////c3.foo = C./*4*/foo;
+////var c = new C1(C.2x);
+////c3.foo = C.4foo;
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -10,6 +10,6 @@
////}
////
-////var 2r = C(/*1*/
-////var 4r2 = new C(/*3*/ // using void returning function as constructor
+////var 2r = C(1
+////var 4r2 = new C(3 // using void returning function as constructor
////var r3 = C.5
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,3 +1,3 @@
-////*
+///
//// * This is a class.
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,6 +2,6 @@
// @Filename: foo.js
-////* @typedef {(number|string)} NumberLike
-////* @typedef {(string|number)}
+/// @typedef {(number|string)} NumberLike
+/// @typedef {(string|number)}
////const x = 0;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////* Test
+/// Test
////export const Test = {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
////
//// var p1: MyPoint = {
-//// /*1 Comment /*2*/ */
+//// 1 Comment /*2 */
//// };
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////class Foo { }
////new1 Foo
-////new 2Foo(/*3*/)
+////new 2Foo(3)
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
////}
-////var 2x = foo(/*1*/
+////var 2x = foo(1
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
////const result = [{ foo: 'hello' }]
-//// .map(({ 1foo }) => /*2*/foo)
+//// .map(({ 1foo }) => 2foo)
//// .map(foo => foo);
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////[[{foo: 'hello', bar: [1]}]]
-//// .map(([{foo, bar: [baz]}]) => 1foo + /*2*/baz);
+//// .map(([{foo, bar: [baz]}]) => 1foo + 2baz);
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////function blah(foo: string, bar: number) {
////}
-////blah('hola1,/*2*/')
+////blah('hola1,2')
// making sure the comma in a string literal doesn't trigger param help on the second function param
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,5 +9,5 @@
//// }
//// var p1: IPromise<string>;
-//// var p12 = p1.then(function (x/*2*/x) {
+//// var p12 = p1.then(function (x2x) {
//// return xx;
//// });
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,7 +9,7 @@
//// }
//// var p1: IPromise<number> = null;
-//// p11.then(function (x/*2*/x) { });
-//// var p32 = p1.then(function (x/*4*/x) { return "hello"; })
-//// var p53 = p2.then(function (x/*6*/x) {
+//// p11.then(function (x2x) { });
+//// var p32 = p1.then(function (x4x) { return "hello"; })
+//// var p53 = p2.then(function (x6x) {
//// return x7x;
//// });
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,7 +1,7 @@
/// <reference path='fourslash.ts'/>
-////var 1x = /*5*/a => 10;
-////var 2y = (/*6*/a, /*7*/b) => 10;
-////var 3z = (/*8*/a: number) => 10;
+////var 1x = 5a => 10;
+////var 2y = (6a, /*7*/b) => 10;
+////var 3z = (8a: number) => 10;
////var 4z2 = () => 10;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,6 +3,6 @@
////class 1c {
////}
-////var 2cInstance = new /*3*/c();
-////var 4cVal = /*5*/c;
+////var 2cInstance = new 3c();
+////var 4cVal = 5c;
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -32,8 +32,8 @@
////var cInstance = new c();
////var y: string;
-////y = 9cInstance./*10*/publicProperty;
-////y = 11c./*12*/staticProperty;
-////9scInstance./*10s*/publicProperty = y;
-////11sc./*12s*/staticProperty = y;
+////y = 9cInstance.10publicProperty;
+////y = 11c.12staticProperty;
+////9scInstance.10spublicProperty = y;
+////11sc.12sstaticProperty = y;
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,6 +5,6 @@
//// }
////}
-////var 2cInstance = new /*3*/c();
-////var 4cVal = /*5*/c;
+////var 2cInstance = new 3c();
+////var 4cVal = 5c;
////class cWithOverloads {
//// 6constructor(x: string);
@@ -13,7 +13,7 @@
//// }
////}
-////var 9cWithOverloadsInstance = new /*10*/cWithOverloads("hello");
-////var 11cWithOverloadsInstance2 = new /*12*/cWithOverloads(10);
-////var 13cWithOverloadsVal = /*14*/cWithOverloads;
+////var 9cWithOverloadsInstance = new 10cWithOverloads("hello");
+////var 11cWithOverloadsInstance2 = new 12cWithOverloads(10);
+////var 13cWithOverloadsVal = 14cWithOverloads;
////class cWithMultipleOverloads {
//// 15constructor(x: string);
@@ -23,8 +23,8 @@
//// }
////}
-////var 19cWithMultipleOverloadsInstance = new /*20*/cWithMultipleOverloads("hello");
-////var 21cWithMultipleOverloadsInstance2 = new /*22*/cWithMultipleOverloads(10);
-////var 23cWithMultipleOverloadsInstance3 = new /*24*/cWithMultipleOverloads(true);
-////var 25cWithMultipleOverloadsVal = /*26*/cWithMultipleOverloads;
+////var 19cWithMultipleOverloadsInstance = new 20cWithMultipleOverloads("hello");
+////var 21cWithMultipleOverloadsInstance2 = new 22cWithMultipleOverloads(10);
+////var 23cWithMultipleOverloadsInstance3 = new 24cWithMultipleOverloads(true);
+////var 25cWithMultipleOverloadsVal = 26cWithMultipleOverloads;
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -18,6 +18,6 @@
////}
////var cInstance = new c();
-////9cInstance./*10*/publicMethod();
-////11c./*12*/staticMethod();
+////9cInstance.10publicMethod();
+////11c.12staticMethod();
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -18,6 +18,6 @@
////}
////var cInstance = new c();
-////9cInstance./*10*/publicProperty;
-////11c./*12*/staticProperty;
+////9cInstance.10publicProperty;
+////11c.12staticProperty;
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////const 1a = 10;
////function foo() {
-//// const 2b = /*3*/a;
+//// const 2b = 3a;
//// if (b) {
//// const 4b1 = 10;
@@ -16,8 +16,8 @@
////}
////const 8f: () => number = () => 10;
-////const 9g = /*10*/f;
+////const 9g = 10f;
////11f();
////const 12h: { (a: string): number; (a: number): string; } = a => a;
-////const 13i = /*14*/h;
+////const 13i = 14h;
////15h(10);
////16h("hello");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,8 +6,8 @@
//// 4e3
////}
-////var 5eInstance: /*6*/E;
-////7eInstance = /*8*/E./*9*/e1;
-////10eInstance = /*11*/E./*12*/e2;
-////13eInstance = /*14*/E./*15*/e3;
+////var 5eInstance: 6E;
+////7eInstance = 8E./*9*/e1;
+////10eInstance = 11E./*12*/e2;
+////13eInstance = 14E./*15*/e3;
////const enum 16constE {
//// 17e1,
@@ -15,8 +15,8 @@
//// 19e3
////}
-////var 20eInstance1: /*21*/constE;
-////22eInstance1 = /*23*/constE./*24*/e1;
-////25eInstance1 = /*26*/constE./*27*/e2;
-////28eInstance1 = /*29*/constE./*30*/e3;
+////var 20eInstance1: 21constE;
+////22eInstance1 = 23constE./*24*/e1;
+////25eInstance1 = 26constE./*27*/e2;
+////28eInstance1 = 29constE./*30*/e3;
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,8 +6,8 @@
//// 4"e3"
////}
-////var 5eInstance: /*6*/E;
-////7eInstance = /*8*/E./*9*/e1;
-////10eInstance = /*11*/E./*12*/e2;
-////13eInstance = /*14*/E./*15*/e3;
+////var 5eInstance: 6E;
+////7eInstance = 8E./*9*/e1;
+////10eInstance = 11E./*12*/e2;
+////13eInstance = 14E./*15*/e3;
////const enum 16constE {
//// 17"e1",
@@ -15,8 +15,8 @@
//// 19"e3"
////}
-////var 20eInstance1: /*21*/constE;
-////22eInstance1 = /*23*/constE./*24*/e1;
-////25eInstance1 = /*26*/constE./*27*/e2;
-////28eInstance1 = /*29*/constE./*30*/e3;
+////var 20eInstance1: 21constE;
+////22eInstance1 = 23constE./*24*/e1;
+////25eInstance1 = 26constE./*27*/e2;
+////28eInstance1 = 29constE./*30*/e3;
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,8 +6,8 @@
//// 4"e3"
////}
-////var 5eInstance: /*6*/E;
-////7eInstance = /*8*/E[/*9*/"e1"];
-////10eInstance = /*11*/E[/*12*/"e2"];
-////13eInstance = /*14*/E[/*15*/'e3'];
+////var 5eInstance: 6E;
+////7eInstance = 8E[/*9*/"e1"];
+////10eInstance = 11E[/*12*/"e2"];
+////13eInstance = 14E[/*15*/'e3'];
////const enum 16constE {
//// 17"e1",
@@ -15,8 +15,8 @@
//// 19"e3"
////}
-////var 20eInstance1: /*21*/constE;
-////22eInstance1 = /*23*/constE[/*24*/"e1"];
-////25eInstance1 = /*26*/constE[/*27*/"e2"];
-////28eInstance1 = /*29*/constE[/*30*/'e3'];
+////var 20eInstance1: 21constE;
+////22eInstance1 = 23constE[/*24*/"e1"];
+////25eInstance1 = 26constE[/*27*/"e2"];
+////28eInstance1 = 29constE[/*30*/'e3'];
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,7 +8,7 @@
// @Filename: quickInfoDisplayPartsExternalModuleAlias_file1.ts
-////import 1a1 = require(/*mod1*/"./quickInfoDisplayPartsExternalModuleAlias_file0");
+////import 1a1 = require(mod1"./quickInfoDisplayPartsExternalModuleAlias_file0");
////new 2a1.m1.c();
-////export import 3a2 = require(/*mod2*/"./quickInfoDisplayPartsExternalModuleAlias_file0");
+////export import 3a2 = require(mod2"./quickInfoDisplayPartsExternalModuleAlias_file0");
////new 4a2.m1.c();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,12 +5,12 @@
//// export var 3namespaceElemWithExport = 10;
////}
-////export var 4a = /*5*/m;
-////export var 6b: typeof /*7*/m;
-////export namespace 8m1./*9*/m2 {
+////export var 4a = 5m;
+////export var 6b: typeof 7m;
+////export namespace 8m1.9m2 {
//// var 10namespaceElemWithoutExport = 10;
//// export var 11namespaceElemWithExport = 10;
////}
-////export var 12x = /*13*/m1./*14*/m2;
-////export var 15y: typeof /*16*/m1./*17*/m2;
+////export var 12x = 13m1./*14*/m2;
+////export var 15y: typeof 16m1./*17*/m2;
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts'/>
-////var 1x = function /*2*/foo() {
+////var 1x = function 2foo() {
//// 3foo();
////};
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////interface 1i {
////}
-////var 2iInstance: /*3*/i;
+////var 2iInstance: 3i;
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,7 +8,7 @@
////}
////var iInstance: I;
-////3iInstance./*4*/property = /*5*/iInstance./*6*/method();
+////3iInstance.4property = /*5*/iInstance./*6*/method();
////7iInstance();
-////var 8anotherInstance = new /*9*/iInstance();
+////var 8anotherInstance = new 9iInstance();
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////let 1a = 10;
////function foo() {
-//// let 2b = /*3*/a;
+//// let 2b = 3a;
//// if (b) {
//// let 4b1 = 10;
@@ -16,8 +16,8 @@
////}
////let 8f: () => number;
-////let 9g = /*10*/f;
+////let 9g = 10f;
////11f();
////let 12h: { (a: string): number; (a: number): string; };
-////let 13i = /*14*/h;
+////let 13i = 14h;
////15h(10);
////16h("hello");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,12 +5,12 @@
//// export var 3namespaceElemWithExport = 10;
////}
-////var 4a = /*5*/m;
-////var 6b: typeof /*7*/m;
-////namespace 8m1./*9*/m2 {
+////var 4a = 5m;
+////var 6b: typeof 7m;
+////namespace 8m1.9m2 {
//// var 10namespaceElemWithoutExport = 10;
//// export var 11namespaceElemWithExport = 10;
////}
-////var 12x = /*13*/m1./*14*/m2;
-////var 15y: typeof /*16*/m1./*17*/m2;
+////var 12x = 13m1./*14*/m2;
+////var 15y: typeof 16m1./*17*/m2;
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts'/>
-////function 1foo(/*2*/param: string, /*3*/optionalParam?: string, /*4*/paramWithInitializer = "hello", .../*5*/restParam: string[]) {
+////function 1foo(2param: string, /*3*/optionalParam?: string, /*4*/paramWithInitializer = "hello", .../*5*/restParam: string[]) {
//// 6param = "Hello";
//// 7optionalParam = "World";
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,6 +3,6 @@
////class 1c {
////}
-////type 2t1 = /*3*/c;
-////var 4cInstance: /*5*/t1 = new /*6*/c();
+////type 2t1 = 3c;
+////var 4cInstance: 5t1 = new /*6*/c();
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,24 +1,24 @@
/// <reference path='fourslash.ts'/>
-////class 1c</*2*/T> {
-//// 3constructor(/*4*/a: /*5*/T) {
+////class 1c<2T> {
+//// 3constructor(4a: /*5*/T) {
//// }
-//// 6method</*7*/U>(/*8*/a: /*9*/U, /*10*/b: /*11*/T) {
+//// 6method<7U>(/*8*/a: /*9*/U, /*10*/b: /*11*/T) {
//// return 12a;
//// }
////}
-////var 13cInstance = new /*14*/c("Hello");
-////var 15cVal = /*16*/c;
-////17cInstance./*18*/method("hello", "cello");
-////class 19c2</*20*/T extends /*21*/c<string>> {
-//// 22constructor(/*23*/a: /*24*/T) {
+////var 13cInstance = new 14c("Hello");
+////var 15cVal = 16c;
+////17cInstance.18method("hello", "cello");
+////class 19c2<20T extends /*21*/c<string>> {
+//// 22constructor(23a: /*24*/T) {
//// }
-//// 25method</*26*/U extends /*27*/c<string>>(/*28*/a: /*29*/U, /*30*/b: /*31*/T) {
+//// 25method<26U extends /*27*/c<string>>(/*28*/a: /*29*/U, /*30*/b: /*31*/T) {
//// return 32a;
//// }
////}
-////var 33cInstance1 = new /*34*/c2(/*35*/cInstance);
-////var 36cVal2 = /*37*/c2;
-////38cInstance1./*39*/method(/*40*/cInstance, /*41*/cInstance);
+////var 33cInstance1 = new 34c2(/*35*/cInstance);
+////var 36cVal2 = 37c2;
+////38cInstance1.39method(/*40*/cInstance, /*41*/cInstance);
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,9 +1,9 @@
/// <reference path='fourslash.ts'/>
-////function 1foo</*2*/U>(/*3*/a: /*4*/U) {
+////function 1foo<2U>(/*3*/a: /*4*/U) {
//// return 5a;
////}
////6foo("Hello");
-////function 7foo2</*8*/U extends string>(/*9*/a: /*10*/U) {
+////function 7foo2<8U extends string>(/*9*/a: /*10*/U) {
//// return 11a;
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts'/>
-//// type MixinCtor<A> = new () => 0A & { constructor: MixinCtor</*1*/A> };
+//// type MixinCtor<A> = new () => 0A & { constructor: MixinCtor<1A> };
//// type MixinCtor<A> = new () => A & { constructor: { constructor: MixinCtor<2A> } };
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,22 +1,22 @@
/// <reference path='fourslash.ts'/>
-////interface 1I</*2*/T> {
-//// new <3U>(/*4*/a: /*5*/U, /*6*/b: /*7*/T): /*8*/U;
-//// <9U>(/*10*/a: /*11*/U, /*12*/b: /*13*/T): /*14*/U;
-//// 15method</*16*/U>(/*17*/a: /*18*/U, /*19*/b: /*20*/T): /*21*/U;
+////interface 1I<2T> {
+//// new <3U>(4a: /*5*/U, /*6*/b: /*7*/T): /*8*/U;
+//// <9U>(10a: /*11*/U, /*12*/b: /*13*/T): /*14*/U;
+//// 15method<16U>(/*17*/a: /*18*/U, /*19*/b: /*20*/T): /*21*/U;
////}
-////var 22iVal: /*23*/I<string>;
+////var 22iVal: 23I<string>;
////new 24iVal("hello", "hello");
////25iVal("hello", "hello");
-////26iVal./*27*/method("hello", "hello");
-////interface 28I1</*29*/T extends /*30*/I<string>> {
-//// new <31U extends /*32*/I<string>>(/*33*/a: /*34*/U, /*35*/b: /*36*/T): /*37*/U;
-//// <38U extends /*39*/I<string>>(/*40*/a: /*41*/U, /*42*/b: /*43*/T): /*44*/U;
-//// 45method</*46*/U extends /*47*/I<string>>(/*48*/a: /*49*/U, /*50*/b: /*51*/T): /*52*/U;
+////26iVal.27method("hello", "hello");
+////interface 28I1<29T extends /*30*/I<string>> {
+//// new <31U extends 32I<string>>(/*33*/a: /*34*/U, /*35*/b: /*36*/T): /*37*/U;
+//// <38U extends 39I<string>>(/*40*/a: /*41*/U, /*42*/b: /*43*/T): /*44*/U;
+//// 45method<46U extends /*47*/I<string>>(/*48*/a: /*49*/U, /*50*/b: /*51*/T): /*52*/U;
////}
-////var 53iVal1: /*54*/I1</*55*/I<string>>;
-////new 56iVal1(/*57*/iVal, /*58*/iVal);
-////59iVal1(/*60*/iVal, /*61*/iVal);
-////62iVal1./*63*/method(/*64*/iVal, /*65*/iVal);
+////var 53iVal1: 54I1</*55*/I<string>>;
+////new 56iVal1(57iVal, /*58*/iVal);
+////59iVal1(60iVal, /*61*/iVal);
+////62iVal1.63method(/*64*/iVal, /*65*/iVal);
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,6 +1,6 @@
/// <reference path='fourslash.ts'/>
-////type 0List</*1*/T> = /*2*/T[]
-////type 3List2</*4*/T extends string> = /*5*/T[];
+////type 0List<1T> = /*2*/T[]
+////type 3List2<4T extends string> = /*5*/T[];
verify.baselineQuickInfo();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////var 1a = 10;
////function foo() {
-//// var 2b = /*3*/a;
+//// var 2b = 3a;
////}
////module m {
@@ -10,8 +10,8 @@
////}
////var 6f: () => number;
-////var 7g = /*8*/f;
+////var 7g = 8f;
////9f();
////var 10h: { (a: string): number; (a: number): string; };
-////var 11i = /*12*/h;
+////var 11i = 12h;
////13h(10);
////14h("hello");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
////
////class B extends A<number, string> {
-//// constructor() { super(va1lue => String(va/*2*/lue.toExpone/*3*/ntial())); }
+//// constructor() { super(va1lue => String(va2lue.toExpone/*3*/ntial())); }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,7 +8,7 @@
////
////tempTag1 `${ x => 0x }${ 10 }`;
-////tempTag1 `${ x => 1x }${ x => /*2*/x }${ 10 }`;
-////tempTag1 `${ x => 3x }${ (x: number) => /*4*/x }${ undefined }`;
-////tempTag1 `${ (x: number) => 5x }${ x => /*6*/x }${ undefined }`;
+////tempTag1 `${ x => 1x }${ x => 2x }${ 10 }`;
+////tempTag1 `${ x => 3x }${ (x: number) => 4x }${ undefined }`;
+////tempTag1 `${ (x: number) => 5x }${ x => 6x }${ undefined }`;
for (const marker of test.markerNames()) {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,6 +8,6 @@
////
////tempTag2 `${ x => 0x }${ 0 }`;
-////tempTag2 `${ 1x => /*2*/x }${ undefined }`;
-////tempTag2 `${ x => 3x }${ x => /*4*/x }${ "hello" }`;
+////tempTag2 `${ 1x => 2x }${ undefined }`;
+////tempTag2 `${ x => 3x }${ x => 4x }${ "hello" }`;
////tempTag2 `${ x => 5x }${ undefined }${ "hello" }`;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////(({ q1, qq/*2*/ }, x/*3*/, { p/*4*/ }) => {
+////(({ q1, qq2 }, x/*3*/, { p/*4*/ }) => {
//// var s: number = q5;
//// var t: number = qq6;
@@ -7,5 +7,5 @@
//// var v: number = x8;
//// return q; })({ q: 13, qq: 12 }, 1, { p: 14 });
-////((a9, b/*10*/, c/*11*/) => [a/*12*/,b/*13*/,c/*14*/])("foo", 101, false);
+////((a9, b10, c/*11*/) => [a/*12*/,b/*13*/,c/*14*/])("foo", 101, false);
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////}
-////* decorator documentation
+/// decorator documentation
////var decorator = t=> t;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
////}
////
-////function f ({ 1next: { /*2*/next: x} }: Recursive) {
+////function f ({ 1next: { 2next: x} }: Recursive) {
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
////}
////
-////function f ({ 1next: { /*2*/next: x} }) {
+////function f ({ 1next: { 2next: x} }) {
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,6 +6,6 @@
////class C {
-//// x21(a: number, call/*3*/back: (x: 'hi') => number);
-//// x41(a: number, call/*5*/back: (x: string) => number) {
+//// x21(a: number, call3back: (x: 'hi') => number);
+//// x41(a: number, call5back: (x: string) => number) {
//// call6back('hi');
//// callback('bye');
@@ -16,5 +16,5 @@
////var c: C;
-////c.x71(1, (x/*8*/x: 'hi') => { return 1; } );
+////c.x71(1, (x8x: 'hi') => { return 1; } );
////c.x1(1, (x9x: 'bye') => { return 1; } );
////c.x1(1, (x10x) => { return 1; } );
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,8 +2,8 @@
//// var name1 = undefined, id1 = undefined;
-//// var obj1obj1 = {/*name1*/name1, /*id1*/id1};
+//// var obj1obj1 = {name1name1, /*id1*/id1};
//// var name2 = "Hello";
//// var id2 = 10000;
-//// var obj2obj2 = {/*name2*/name2, /*id2*/id2};
+//// var obj2obj2 = {name2name2, /*id2*/id2};
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,6 +3,6 @@
//// type Call<AA> = { (): A1A };
//// type Index<AA> = {[foo: string]: A2A};
-//// type GenericMethod<AA> = { method<BB>(): A3A & B/*4*/B }
-//// type Nesting<TT> = { method<UU>(): new <WW>() => T5T & U/*6*/U & W/*7*/W };
+//// type GenericMethod<AA> = { method<BB>(): A3A & B4B }
+//// type Nesting<TT> = { method<UU>(): new <WW>() => T5T & U6U & W/*7*/W };
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,9 +8,9 @@
////}
////class List2<4T extends IList<number>> implements IList<T> {
-//// private __it6em: /*5*/T[];
+//// private __it6em: 5T[];
//// public get7Item(i: number) {
//// return this.__item[i];
//// }
-//// public 8method</*9*/S extends IList<T>>(s: S, p: /*10*/T[]) {
+//// public 8method<9S extends IList<T>>(s: S, p: /*10*/T[]) {
//// return s;
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////class C<T> {
-//// map(fn: (1k: string, /*2*/value: T, context: any) => void, context: any) {
+//// map(fn: (1k: string, 2value: T, context: any) => void, context: any) {
//// }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
////invlaid2}
////
-////clinvlaid3ass bar imple/*invlaid4*/ments IFoo {
+////clinvlaid3ass bar impleinvlaid4ments IFoo {
//// constructor( invlaid5 ) {
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////with (x) {
//// function 1f() { }
-//// var 2b = /*3*/f;
+//// var 2b = 3f;
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -13,5 +13,5 @@
////var zz = c();
////
-////xBx = y/*C*/y;
+////xBx = yCy;
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -15,5 +15,5 @@
//// }
////}
-////var x = new 2B(/*1*/
+////var x = new 2B(1
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts'/>
-////interface Fo1o<T/*2*/T extends Date> {}
+////interface Fo1o<T2T extends Date> {}
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////* Module comment
+/// Module comment
////export module m1 {
//// * m2 comments
@@ -12,11 +12,11 @@
//// }
////}
-////*This is on import declaration
-////import 2internalAlias = m1.m2./*3*/c;
-////var 4newVar = new /*5*/internalAlias();
-////var 6anotherAliasVar = /*7*/internalAlias;
-////import 8internalFoo = m1./*9*/foo;
-////var 10callVar = /*11*/internalFoo();
-////var 12anotherAliasFoo = /*13*/internalFoo;
+///This is on import declaration
+////import 2internalAlias = m1.m2.3c;
+////var 4newVar = new 5internalAlias();
+////var 6anotherAliasVar = 7internalAlias;
+////import 8internalFoo = m1.9foo;
+////var 10callVar = 11internalFoo();
+////var 12anotherAliasFoo = 13internalFoo;
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -10,5 +10,5 @@
//// var b: B<string>;
//// var r3 = b.foo; // number
-//// var r24 = b.b/*1*/ar; // string
+//// var r24 = b.b1ar; // string
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,5 +7,5 @@
////};
////var 4point = makePoint(2);
-////var 2x = point./*3*/x;
+////var 2x = point.3x;
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts'/>
-////f1oo = fo/*2*/o;
+////f1oo = fo2o;
////var [|{| "isWriteAccess": true, "isDefinition": true |}bar|] = function () { };
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,6 +1,6 @@
/// <reference path='fourslash.ts'/>
-////// References to 1foo or b/*2*/ar
-//// in comments should not find fo/*3o or bar/*4*/ */
+////// References to 1foo or b2ar
+//// in comments should not find fo3o or bar/*4 */
////class foo { }
////var bar = 0;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts" />
-//// 115 / /*2*/Math.min(61 / /*3*/42, 32 / 15) / /*4*/15;
+//// 115 / 2Math.min(61 / /*3*/42, 32 / 15) / /*4*/15;
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
//// // test code
-//////var x = /a/;/*1*/
+//////var x = /a/;1
//////x.exec("bab");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts" />
-//// function fn( comment! /**/a: number, c) { }
+//// function fn( comment! a: number, c) { }
goTo.marker();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// return 2[|DefaultExportedFunction|]
////}
-////*
+///
//// * Commenting [|{| "inComment": true |}DefaultExportedFunction|]
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,5 +11,5 @@
////var y = 4[|f|]();
////
-////*
+///
//// * Commenting [|{| "inComment": true |}f|]
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
//// return DefaultExportedFunction
////}
-////*
+///
//// * Commenting DefaultExportedFunction
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
//// return [|DefaultExportedFunction|]
////}
-////*
+///
//// * Commenting DefaultExportedFunction
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -12,5 +12,5 @@
////var y = f();
////
-////*
+///
//// * Commenting f
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -20,13 +20,13 @@
////var t1 :(a1: string, a2: string) => void = (...t1f1) => { } // f1 => any[];
////var t2: (a1: string, ...a2: string[]) => void = (...t2f1) => { } // f1 => any[];
-////var t3: (a1: number, a2: boolean, ...c: string[]) => void = (t31f1, .../*t32*/f2) => { }; // f1 => number, f2 => any[]
+////var t3: (a1: number, a2: boolean, ...c: string[]) => void = (t31f1, ...t32f2) => { }; // f1 => number, f2 => any[]
////var t4: (...a1: string[]) => void = (...t4f1) => { }; // f1 => string[]
////var t5: (...a1: string[]) => void = (t5f1) => { }; // f1 => string
-////var t6: (...a1: string[]) => void = (t61f1, .../*t62*/f2) => { }; // f1 => string, f2 => string[]
-////var t7: (...a1: string[]) => void = (t71f1, /*t72*/f2, /*t73*/f3) => { }; // fa => string, f2 => string, f3 => string
+////var t6: (...a1: string[]) => void = (t61f1, ...t62f2) => { }; // f1 => string, f2 => string[]
+////var t7: (...a1: string[]) => void = (t71f1, t72f2, /*t73*/f3) => { }; // fa => string, f2 => string, f3 => string
////// Explicit type annotation
////var t8: (...a1: string[]) => void = (t8f1: number[]) => { };
////// Explicit initialization value
-////var t9: (a1: string[], a2: string[]) => void = (t91f1 = 4, /*t92*/f2 = [false, true]) => { };
+////var t9: (a1: string[], a2: string[]) => void = (t91f1 = 4, t92f2 = [false, true]) => { };
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////var foo: Function = function (1a, /*2*/b, /*3*/c) { };
+////var foo: Function = function (1a, 2b, /*3*/c) { };
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
// @Filename: something.js
////var C = function () { }
-////*
+///
//// * The prototype method.
//// * @param {string} a Parameter definition.
@@ -11,5 +11,5 @@
////
////var x = new C();
-////x1./*2*/m();
+////x1.2m();
verify.quickInfoAt("1", "var x: {\n m: (a: string) => void;\n}");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
//// }
//// }
-//// interface 2X extends /*3*/M./*4*/I { }
+//// interface 2X extends 3M./*4*/I { }
var c = classification;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
//// var x = class 0C {}
//// class 1C {}
-//// class 2D extends class /*3*/B{} { }
+//// class 2D extends class 3B{} { }
var c = classification;
verify.semanticClassificationsAre(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -12,5 +12,5 @@
////}
////
-////var v: 3M./*4*/I;
+////var v: 3M.4I;
////
////var x = 5M;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -15,5 +15,5 @@
////}
////
-////var v: 4M./*5*/I;
+////var v: 4M.5I;
////
////var x = 6M;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,5 +9,5 @@
//// }
////}
-////`abcd${ 3M./*4*/C.x + /*5*/M./*6*/E.E1}efg`
+////`abcd${ 3M.4C.x + /*5*/M./*6*/E.E1}efg`
var c = classification;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,5 +7,5 @@
////}
////
-////var x: 2M./*3*/I = /*4*/M.v;
+////var x: 2M.3I = /*4*/M.v;
////var y = 5M;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,5 +11,5 @@
////}
////
-////var v: 3M./*4*/I;
+////var v: 3M.4I;
////
////var x = 5M;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,5 +9,5 @@
////}
////
-////var M: 4M./*5*/I | /*6*/I | /*7*/C;
+////var M: 4M.5I | /*6*/I | /*7*/C;
////var I: typeof M | typeof 8C;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
////var x: 1Alias;
////var y = <2Alias>{};
-////function f(x: 3Alias): /*4*/Alias { return undefined; }
+////function f(x: 3Alias): 4Alias { return undefined; }
var c = classification;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
//// var NumberLike2;
////
-//// * @type {/*1NumberLike} */
+//// * @type {1NumberLike}
//// var numberLike;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,5 +11,5 @@
////
////
-//// * @type {/*2[|Person|]} */
+//// * @type {2[|Person|]}
//// var person;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,5 +7,5 @@
//// * @typedef {(string | number)} NumberLike
////
-//// * @type {/*1NumberLike} */
+//// * @type {1NumberLike}
//// var numberLike;
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,11 +11,11 @@
// @ResolveReference: true
//// ///<reference path="refFile1.ts" />
-//// 1///<reference path = "NotExistRef.ts" />/*2*/
-//// 3///<reference path "invalidRefFile1.ts" />/*4*/
+//// 1///<reference path = "NotExistRef.ts" />2
+//// 3///<reference path "invalidRefFile1.ts" />4
//// import ref2 = require("refFile2");
-//// import noExistref2 = require(5"NotExistRefFile2"/*6*/);
-//// import invalidRef1 7require/*8*/("refFile2");
-//// import invalidRef2 = 9requi/*10*/(/*10A*/"refFile2");
-//// var obj: 11C/*12*/;
+//// import noExistref2 = require(5"NotExistRefFile2"6);
+//// import invalidRef1 7require8("refFile2");
+//// import invalidRef2 = 9requi10(/*10A*/"refFile2");
+//// var obj: 11C12;
//// var obj1: D;
//// var obj2: ref2.E;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
//// }
//// }
-//// interface 2X extends /*3*/M./*4*/I { }
+//// interface 2X extends 3M./*4*/I { }
var c = classification;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
// @declaration: true
//// interface privateInterface {}
-//// export class Bar implements 1privateInterface/*2*/{ }
+//// export class Bar implements 1privateInterface2{ }
verify.errorExistsBetweenMarkers("1", "2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////var 1a = 10;
////function foo() {
-//// var 2b = /*3*/a;
+//// var 2b = 3a;
////}
////module m {
@@ -12,8 +12,8 @@
////}
////var 6f: () => number;
-////var 7g = /*8*/f;
+////var 7g = 8f;
////9f();
////var 10h: { (a: string): number; (a: number): string; };
-////var 11i = /*12*/h;
+////var 11i = 12h;
////13h(10);
////14h("hello");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,11 +11,11 @@
// @ResolveReference: true
//// ///<reference path="refFile1.ts" />
-//// 1///<reference path = "NotExistRef.ts" />/*2*/
-//// 3///<reference path "invalidRefFile1.ts" />/*4*/
+//// 1///<reference path = "NotExistRef.ts" />2
+//// 3///<reference path "invalidRefFile1.ts" />4
//// import ref2 = require("refFile2");
-//// import noExistref2 = require(5"NotExistRefFile2"/*6*/);
-//// import invalidRef1 7require/*8*/("refFile2");
-//// import invalidRef2 = 9requi/*10*/(/*10A*/"refFile2");
-//// var obj: 11C/*12*/;
+//// import noExistref2 = require(5"NotExistRefFile2"6);
+//// import invalidRef1 7require8("refFile2");
+//// import invalidRef2 = 9requi10(/*10A*/"refFile2");
+//// var obj: 11C12;
//// var obj1: D;
//// var obj2: ref2.E;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
//// }
//// }
-//// interface 2X extends /*3*/M./*4*/I { }
+//// interface 2X extends 3M./*4*/I { }
var c = classification;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
// @declaration: true
//// interface privateInterface {}
-//// export class Bar implements 1privateInterface/*2*/{ }
+//// export class Bar implements 1privateInterface2{ }
verify.errorExistsBetweenMarkers("1", "2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////var 1a = 10;
////function foo() {
-//// var 2b = /*3*/a;
+//// var 2b = 3a;
////}
////module m {
@@ -12,8 +12,8 @@
////}
////var 6f: () => number;
-////var 7g = /*8*/f;
+////var 7g = 8f;
////9f();
////var 10h: { (a: string): number; (a: number): string; };
-////var 11i = /*12*/h;
+////var 11i = 12h;
////13h(10);
////14h("hello");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// return null;
////}
-////anonymousFunctionTest(5, "")(anonymousFunction11, /*anonymousFunction2*/"");
+////anonymousFunctionTest(5, "")(anonymousFunction11, anonymousFunction2"");
goTo.marker("anonymousFunction1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////function fnTest(str: string, num: number) { }
-////fnTest(1'', /*2*/5);
+////fnTest(1'', 25);
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////class sampleCls { constructor(str: string, num: number) { } }
-////var x = new sampleCls(1"", /*2*/5);
+////var x = new sampleCls(1"", 25);
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////function parameterFunction(callback: (a: number, b: string) => void) {
-//// callback(parameterFunction15, /*parameterFunction2*/"");
+//// callback(parameterFunction15, parameterFunction2"");
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////*
+///
//// * Returns the substring at the specified location within a String object.
//// * @param start The zero-based index integer indicating the beginning of the substring.
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////class clsOverload { constructor(); constructor(test: string); constructor(test?: string) { } }
-////var x = new clsOverloadbeforeOpenParen()/*afterCloseParen*/;
+////var x = new clsOverloadbeforeOpenParen()afterCloseParen;
goTo.marker("beforeOpenParen");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////var objectLiteral = { n: 5, s: "", f: (a: number, b: string) => "" };
-////objectLiteral.f(objectLiteral14, /*objectLiteral2*/"");
+////objectLiteral.f(objectLiteral14, objectLiteral2"");
goTo.marker("objectLiteral1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
//// }
////}
-////var x = new ConstructorCall(constructorCall11,/*constructorCall2*/2);
+////var x = new ConstructorCall(constructorCall11,constructorCall22);
goTo.marker("constructorCall1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f `1 qwe/*2*/rty /*3*/$/*4*/{ 123 }/*5*/ as/*6*/df /*7*/$/*8*/{ 41234 }/*9*/ zxc/*10*/vb /*11*/$/*12*/{ g ` ` }/*13*/ /*14*/ /*15*/`
+//// f `1 qwe2rty /*3*/$/*4*/{ 123 }/*5*/ as/*6*/df /*7*/$/*8*/{ 41234 }/*9*/ zxc/*10*/vb /*11*/$/*12*/{ g ` ` }/*13*/ /*14*/ /*15*/`
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f `1 qwe/*2*/rty /*3*/$/*4*/{ 123 }/*5*/ as/*6*/df /*7*/$/*8*/{ 41234 }/*9*/ zxc/*10*/vb /*11*/$/*12*/{ g ` ` }/*13*/ /*14*/ /*15*/
+//// f `1 qwe2rty /*3*/$/*4*/{ 123 }/*5*/ as/*6*/df /*7*/$/*8*/{ 41234 }/*9*/ zxc/*10*/vb /*11*/$/*12*/{ g ` ` }/*13*/ /*14*/ /*15*/
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f ` qwerty ${1 /*2*/123/*3*/ /*4*/} asdf ${ 41234 } zxcvb ${ g ` ` } `
+//// f ` qwerty ${1 2123/*3*/ /*4*/} asdf ${ 41234 } zxcvb ${ g ` ` } `
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f ` qwerty ${ 123 } asdf ${1 /*2*/ /*3*/41/*4*/234/*5*/ /*6*/} zxcvb ${ g ` ` } `
+//// f ` qwerty ${ 123 } asdf ${1 2 /*3*/41/*4*/234/*5*/ /*6*/} zxcvb ${ g ` ` } `
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f ` qwerty ${ 123 } asdf ${ 41234 } zxcvb ${1 /*2*/g/*3*/ /*4*/` `/*5*/ /*6*/} `
+//// f ` qwerty ${ 123 } asdf ${ 41234 } zxcvb ${1 2g/*3*/ /*4*/` `/*5*/ /*6*/} `
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f ` qwerty ${ 123 } asdf ${ 41234 } zxcvb ${ g `1 /*2*/ /*3*/` } `
+//// f ` qwerty ${ 123 } asdf ${ 41234 } zxcvb ${ g `1 2 /*3*/` } `
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f `1 /*2*/
+//// f `1 2
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f `1 /*2*/${
+//// f `1 2${
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f ` ${1 /*2*/
+//// f ` ${1 2
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f ` ${ }1 /*2*/
+//// f ` ${ }1 2
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f ` ${ } ${1 /*2*/
+//// f ` ${ } ${1 2
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f ` ${ } ${ }1 /*2*/
+//// f ` ${ } ${ }1 2
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,7 +4,7 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f ` ${ 123 } 1${ } /*2*/\/*3*/
-//// 4\\/*5*/
-//// 6\\\/*7*/
+//// f ` ${ 123 } 1${ } 2\/*3*/
+//// 4\\5
+//// 6\\\7
//// 8
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f `1\/*2*/`/*3*/ /*4*/
+//// f `1\2`/*3*/ /*4*/
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f `1 \\\/*2*/`/*3*/ /*4*/
+//// f `1 \\\2`/*3*/ /*4*/
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// 1f/*2*/ /*3*/` qwerty ${ 123 } asdf ${ 41234 } zxcvb ${ g ` ` } `/*4*/
+//// 1f2 /*3*/` qwerty ${ 123 } asdf ${ 41234 } zxcvb ${ g ` ` } `/*4*/
goTo.eachMarker(() => verify.not.signatureHelpPresent());
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// }
////
-//// 1fo/*2*/o /*3*/`abcd${0 + 1}abcd{1 + 1}`/*4*/ /*5*/
+//// 1fo2o /*3*/`abcd${0 + 1}abcd{1 + 1}`/*4*/ /*5*/
goTo.eachMarker(() => verify.not.signatureHelpPresent());
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// }
////
-//// 1fo/*2*/o /*3*/`abcd${0 + 1}abcd{1 + 1}abcd`/*4*/ /*5*/
+//// 1fo2o /*3*/`abcd${0 + 1}abcd{1 + 1}abcd`/*4*/ /*5*/
goTo.eachMarker(() => verify.not.signatureHelpPresent());
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// }
////
-//// 1fo/*2*/o /*3*/``/*4*/ /*5*/
+//// 1fo2o /*3*/``/*4*/ /*5*/
goTo.eachMarker(() => verify.not.signatureHelpPresent());
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// }
////
-//// 1fo/*2*/o /*3*/`abcd`/*4*/
+//// 1fo2o /*3*/`abcd`/*4*/
goTo.eachMarker(() => verify.not.signatureHelpPresent());
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f `a ${ g `1alpha/*2*/ ${/*3*/ 12/*4*/3 /*5*/} beta /*6*/${ /*7*/456 /*8*/} gamma/*9*/` } b ${ g `/*10*/txt/*11*/` } c ${ g `/*12*/aleph /*13*/$/*14*/{ 12/*15*/3 } beit/*16*/` } d`;
+//// f `a ${ g `1alpha2 ${/*3*/ 12/*4*/3 /*5*/} beta /*6*/${ /*7*/456 /*8*/} gamma/*9*/` } b ${ g `/*10*/txt/*11*/` } c ${ g `/*12*/aleph /*13*/$/*14*/{ 12/*15*/3 } beit/*16*/` } d`;
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
//// function g(templateStrings, x, y, z) { return ""; }
////
-//// f `1a $/*2*/{ /*3*/g /*4*/`alpha ${ 123 } beta ${ 456 } gamma`/*5*/ }/*6*/ b $/*7*/{ /*8*/g /*9*/`txt`/*10*/ } /*11*/c ${ /*12*/g /*13*/`aleph ${ 123 } beit`/*14*/ } d/*15*/`;
+//// f `1a $2{ /*3*/g /*4*/`alpha ${ 123 } beta ${ 456 } gamma`/*5*/ }/*6*/ b $/*7*/{ /*8*/g /*9*/`txt`/*10*/ } /*11*/c ${ /*12*/g /*13*/`aleph ${ 123 } beit`/*14*/ } d/*15*/`;
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// function f(...foo[]: any) { return ""; }
////
-//// f `1 /*2*/$/*3*/{
+//// f `1 2$/*3*/{
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// function f(...foo[]: any) { return ""; }
////
-//// f `${1 /*2*/ /*3*/
+//// f `${1 2 /*3*/
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// function f(...foo[]: any) { return ""; }
////
-//// f `${1 "s/*2*/tring" /*3*/ } ${
+//// f `${1 "s2tring" /*3*/ } ${
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// function f(...foo[]: any) { return ""; }
////
-//// f `${1 123.456/*2*/ /*3*/ } ${
+//// f `${1 123.4562 /*3*/ } ${
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// function f(...foo[]: any) { return ""; }
////
-//// f `${ } ${1 /*2*/ /*3*/
+//// f `${ } ${1 2 /*3*/
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// function f(...foo[]: any) { return ""; }
////
-//// f `${ } ${1 /*2*/ /*3*/}
+//// f `${ } ${1 2 /*3*/}
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// function f(...foo[]: any) { return ""; }
////
-//// f `${ } ${1 fa/*2*/lse /*3*/}
+//// f `${ } ${1 fa2lse /*3*/}
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// function f(...foo[]: any) { return ""; }
////
-//// f `${ undefined } ${ undefined } ${1 10/*2*/./*3*/01 /*4*/} `
+//// f `${ undefined } ${ undefined } ${1 102./*3*/01 /*4*/} `
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,5 +6,5 @@
//// function f(...foo[]: any) { return ""; }
////
-//// f `${1 /*2*/ /*3*/} ${
+//// f `${1 2 /*3*/} ${
goTo.eachMarker(() => {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////*
+///
//// * Returns the substring at the specified location within a String object.
//// * @param start The zero-based index integer indicating the beginning of the substring.
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////var 1[/*2*/a,/*3*/b,/*4*/
+////var 1[2a,/*3*/b,/*4*/
function verifyIndentationAfterNewLine(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////var 1[/*2*/a,/*3*/b/*4*/]/*5*/
+////var 1[2a,/*3*/b/*4*/]/*5*/
function verifyIndentationAfterNewLine(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
////
//// do { 2
-//// } 3while (true)/*4*/
+//// } 3while (true)4
function verifyIndentationAfterNewLine(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
//// if 1(true) { }
////
-//// if (true) 2 { /*3*/
+//// if (true) 2 { 3
//// } 4
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////var x = (11/*2*/)/*3*/
+////var x = (112)/*3*/
function verifyIndentationAfterNewLine(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////var 1{/*2*/a,/*3*/b:/*4*/k,/*5*/
+////var 1{2a,/*3*/b:/*4*/k,/*5*/
function verifyIndentationAfterNewLine(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////var 1{/*2*/a,/*3*/b:/*4*/k,/*5*/}/*6*/
+////var 1{2a,/*3*/b:/*4*/k,/*5*/}/*6*/
function verifyIndentationAfterNewLine(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////class Foo {
//// get foo(a,
-//// 1b,/*0*/
+//// 1b,0
//// //comment2
//// 3c
@@ -9,5 +9,5 @@
//// }
//// set foo(a,
-//// 5b,/*4*/
+//// 5b,4
//// //comment6
//// 7c
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////class Foo {
//// get foo(a,
-//// 1b,/*0*/
+//// 1b,0
//// //comment2
//// 3c
@@ -9,5 +9,5 @@
//// }
//// set foo(a,
-//// 5b,/*4*/
+//// 5b,4
//// //comment6
//// 7c
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////function foo(a,
-//// 2b,/*0*/
+//// 2b,0
//// //comment3
//// 4c
@@ -8,5 +8,5 @@
////};
////var x = [
-//// 5//comment/*1*/
+//// 5//comment1
//// 1,6
//// 27
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////function 1f/*2*/
+////function 1f2
function verifyIndentationAfterNewLine(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////function f<1A/*2*/,B/*3*/
+////function f<1A2,B/*3*/
function verifyIndentationAfterNewLine(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////function f<A,B,C>1(/*2*/a: A, /*3*/b:/*4*/B, c/*5*/, d: C/*6*/
+////function f<A,B,C>1(2a: A, /*3*/b:/*4*/B, c/*5*/, d: C/*6*/
function verifyIndentationAfterNewLine(
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////function takesCallback(callback: (n) => any) { }
-////takesCallback(function inner(n) { var 1k/*2*/: string = 10; });
+////takesCallback(function inner(n) { var 1k2: string = 10; });
verify.errorExistsBetweenMarkers("1", "2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////class Foo extends 1Bar/*2*/ { }
+////class Foo extends 1Bar2 { }
verify.errorExistsBetweenMarkers("1", "2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////var n = '';
-////interface x extends 1string/*2*/ {}
+////interface x extends 1string2 {}
verify.not.errorExistsBeforeMarker();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////}
////
-////class 1Bar/*2*/ extends Foo {
+////class 1Bar2 extends Foo {
//// public x: string;
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
//// var x = `1`;
-//// var y = `hello 2world, ${100}how /*3*/are you{ 200 } to/*4*/day!?`
+//// var y = `hello 2world, ${100}how 3are you{ 200 } to/*4*/day!?`
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////* @template T
+/// @template T
////function ident<T>: T {
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-//// * @param foo { number /* }
+//// * @param foo { number }
//// var v;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts"/>
-////*
+///
//// * This is my function.
//// * There are many like it, but this one is mine.
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -43,5 +43,5 @@
//// return g.isLeader();
//// }
-//// let checked14LeaderStatus = isLeader/*15*/Guard(a);
+//// let checked14LeaderStatus = isLeader15Guard(a);
goTo.marker("2");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -57,5 +57,5 @@
//// return g.isLeader();
//// }
-//// let checked14LeaderStatus = isLeader/*15*/Guard(a);
+//// let checked14LeaderStatus = isLeader15Guard(a);
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////function str(n: number): string;
-////*
+///
//// * Stringifies a number with radix
//// * @param radix The radix
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,6 +7,6 @@
// @Filename: test.ts
-//// /// <reference path0=/*1*/"/*8*/
-//// /// <reference path2=/*3*/"/*9*/"/*4*/ /*5*///*6*/>/*7*/
+//// /// <reference path0=1"/*8*/
+//// /// <reference path2=3"/*9*/"/*4*/ /*5*///*6*/>/*7*/
for (let m = 0; m < 8; ++m) {
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
//// }
//// }
-//// var x = <div 1 autoComplete /*2*/ />;
+//// var x = <div 1 autoComplete 2 />;
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,7 +8,7 @@
//// }
//// }
-//// var x1 = <div> 1 hello /*2*/ world /*3*/</div>;
-//// var x2 = <div> 4 <div></div> /*5*/ world /*6*/</div>;
-//// var x3 = <div>7<div/>/*8*/world/*9*/</div>;
+//// var x1 = <div> 1 hello 2 world /*3*/</div>;
+//// var x2 = <div> 4 <div></div> 5 world /*6*/</div>;
+//// var x3 = <div>7<div/>8world/*9*/</div>;
//// var x4 = <div>10</div>;
//// <div/>
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -18,7 +18,7 @@
//// declare function optOpt(attributes: OptionPropBag): JSX.Element;
//// let opt = <Oonept />;
-//// let opt1 = <Optwot pr/*p1*/opx={100} />;
-//// let opt2 = <Opthreet propx={100} opt/*p2*/ional />;
-//// let opt3 = <Opfourt wr/*p3*/ong />;
+//// let opt1 = <Optwot prp1opx={100} />;
+//// let opt2 = <Opthreet propx={100} optp2ional />;
+//// let opt3 = <Opfourt wrp3ong />;
verify.goToDefinition({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,7 +2,7 @@
//@Filename: file.tsx
-//// var x1 = <di1v></di/*2*/v>
+//// var x1 = <di1v></di2v>
//// class MyElement {}
-//// var z = <My3Element></My/*4*/Element>
+//// var z = <My3Element></My4Element>
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,7 +8,7 @@
//// }
//// }
-//// var x1 = <di1v></di/*2*/v>
+//// var x1 = <di1v></di2v>
//// class MyElement {}
-//// var z = <My3Element></My/*4*/Element>
+//// var z = <My3Element></My4Element>
verify.quickInfos({
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -19,5 +19,5 @@
//// }
-//// let y1 = <O1pt pro/*2*/px={2} />;
+//// let y1 = <O1pt pro2px={2} />;
//// let y2 = <Opt {...ob3j1} />;
//// let y2 = <Opt {...obj1} pr4opx />;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -36,5 +36,5 @@
//// function buildSomeElement1(): JSX.Element {
//// return (
-//// <MainB1utton t/*2*/o='/some/path'>GO</MainButton>
+//// <MainB1utton t2o='/some/path'>GO</MainButton>
//// );
//// }
@@ -42,5 +42,5 @@
//// function buildSomeElement2(): JSX.Element {
//// return (
-//// <MainB3utton onC/*4*/lick={()=>{}}>GO</MainButton>;
+//// <MainB3utton onC4lick={()=>{}}>GO</MainButton>;
//// );
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
//// function Baz<T,U>(key1: T, value: U) {
-//// let a0 = <ComponentWi1thTwoAttributes k/*2*/ey1={key1} val/*3*/ue={value} />
+//// let a0 = <ComponentWi1thTwoAttributes k2ey1={key1} val/*3*/ue={value} />
//// let a1 = <ComponentWithTwoAttributes {...{key1, value: value}} key="Component" />
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -23,5 +23,5 @@
//// return this._buildMainButton(props);
//// }
-//// let e1 = <MainButton1 /*2*/
+//// let e1 = <MainButton1 2
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -29,5 +29,5 @@
//// return this._buildMainButton(props);
//// }
-//// let e1 = <MainButton1 /*2*/
+//// let e1 = <MainButton1 2
goTo.marker("1");
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path="fourslash.ts" />
-////startclass Point implements /*IPointRef*/IPoint {
+////startclass Point implements IPointRefIPoint {
//// getDist() {
//// ssss;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,5 +2,5 @@
////class Foo {
-//// constructor(/*) { }
+//// constructor() { }
////}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
////function alpha() {
////
-////function beta() { 1alpha()/*2*/; }
+////function beta() { 1alpha()2; }
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts' />
-////var x = 1"asd/*2*/
+////var x = 1"asd2
////class Foo {
////
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -17,12 +17,12 @@
////
////var a: string[];
-////var 1b = _.map(a, /*2*/x => x.length); // Was typed any[], should be number[]
-////var 3c = _(a).map(/*4*/x => x.length);
-////var 5d = a.map(/*6*/x => x.length);
+////var 1b = _.map(a, 2x => x.length); // Was typed any[], should be number[]
+////var 3c = _(a).map(4x => x.length);
+////var 5d = a.map(6x => x.length);
////
////var aa: any[];
-////var 7bb = _.map(aa, /*8*/x => x.length);
-////var 9cc = _(aa).map(/*10*/x => x.length);
-////var 11dd = aa.map(/*12*/x => x.length);
+////var 7bb = _.map(aa, 8x => x.length);
+////var 9cc = _(aa).map(10x => x.length);
+////var 11dd = aa.map(12x => x.length);
////
////var e = a.map(x => x.13
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
// @Filename: a.ts
-////import foo[|{| "isWriteAccess": true, "isDefinition": true |}foo|] from /*fooModule*/"[|{| "isInString": true |}foo|]";
+////import foo[|{| "isWriteAccess": true, "isDefinition": true |}foo|] from fooModule"[|{| "isInString": true |}foo|]";
////[|foo|]();
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,5 +5,5 @@
////class greeter {
//// public function1() {
-//// [| var 0x,/*1*/ y = 10; |]
+//// [| var 0x,1 y = 10; |]
//// y++;
//// }
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,8 +1,8 @@
/// <reference path="fourslash.ts" />
-////let noSubTemplate = ` /*1`;
-////let templateHead = ` /*2${1 + 2}`;
-////let templateMiddle = ` ${1 + 2 /*3}`;
-////let templateTail = ` ${1 + 2} /*4`;
+////let noSubTemplate = ` 1`;
+////let templateHead = ` 2${1 + 2}`;
+////let templateMiddle = ` ${1 + 2 3}`;
+////let templateTail = ` ${1 + 2} 4`;
goTo.marker("1");
../TypeScript/tests/cases/projects/declarations_GlobalImport/useModule.d.ts: SyntaxError: ';' expected. (1:23)
> 1 | import glo_m4 = module ("glo_m4");
| ^
2 | export declare var useGlo_m4_x4: glo_m4.d;
3 | export declare var useGlo_m4_d4: glo_m4.d;
4 | export declare var useGlo_m4_f4: glo_m4.d;
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function foo(...args: any[])
-foo
+foo;
export class MyClass1 {
constructor(private _elementRef: ng.ElementRef) {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function foo(...args: any[])
-foo
+foo;
export class MyClass1 {
constructor(private _elementRef: ng.ElementRef) {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function foo(...args: any[])
-foo
+foo;
export class MyClass1 {
constructor(private _elementRef: ng.ElementRef) {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function foo(...args: any[])
-foo
+foo;
export class MyClass1 {
constructor(private _elementRef: ng.ElementRef) {}
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,5 +3,5 @@
declare function foo(...args: any[])
-foo
+foo;
export class MyClass1 {
constructor(private _elementRef: ng.ElementRef) {}
../TypeScript/tests/cases/unittests/matchFiles.ts: SyntaxError: Identifier expected. (373:36)
371 | "jspm_packages/a.ts"
372 | ],
> 373 | exclude: <string[]>[]
| ^
374 | };
375 | const expected: ts.ParsedCommandLine = {
376 | options: {},
../TypeScript/tests/lib/lib.d.ts: SyntaxError: ',' expected. (1248:11)
1246 | * @param items Additional items to add to the end of array1.
1247 | */
> 1248 | concat<U in T[]>(
| ^
1249 | ...items: U[]
1250 | ): T[],
1251 | /**
../TypeScript/tests/lib/react.d.ts: SyntaxError: ',' expected. (1253:6)
1251 | interface ComponentElement<
1252 | P,
> 1253 | T in Component<P, ComponentState>
| ^
1254 | > extends ReactElement<P> {
1255 | type: ComponentClass<P>,
1256 | ref?: Ref<T>
../TypeScript/tests/perfsys.ts: SyntaxError: '}' expected. (70:59)
68 |
69 | const files: ts.Map<string> = {};
> 70 | log.fileNames.forEach(f => { files[f] = readFile(f); });
| ^
71 |
72 | ts.sys.createDirectory = (s: string) => { };
73 | ts.sys.directoryExists = (s: string) => true;
../TypeScript/tests/webTestServer.ts: SyntaxError: Expression expected. (99:25)
97 | // Copied from the compiler sources
98 | function dir(dirPath: string, spec?: string, options?: any) {
> 99 | options = options || <{ recursive?: boolean; }>{};
| ^
100 | return filesInFolder(dirPath);
101 |
102 | function filesInFolder(folder: string): string[] {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment