Adds ThisType to SyntaxKind, to distinguish between a 'this' expression and a 'this' type. Needed for transforms

This commit is contained in:
Ron Buckton
2015-11-17 10:53:29 -08:00
parent 5ac4b782e0
commit 443abe6dea
9 changed files with 42 additions and 26 deletions

View File

@@ -92,7 +92,6 @@ class C5 {
let f1 = (x: this): this => this;
>f1 : Symbol(f1, Decl(thisTypeInClasses.ts, 34, 11))
>x : Symbol(x, Decl(thisTypeInClasses.ts, 34, 18))
>this : Symbol(C5, Decl(thisTypeInClasses.ts, 30, 1))
>this : Symbol(C5, Decl(thisTypeInClasses.ts, 30, 1))
let f2 = (x: this) => this;

View File

@@ -93,7 +93,6 @@ class C5 {
>f1 : (x: this) => this
>(x: this): this => this : (x: this) => this
>x : this
>this : this
>this : this
let f2 = (x: this) => this;