From 27346b13d039a694ff815db81ba6f6df5667fe2e Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 16 Feb 2017 20:22:46 -0800 Subject: [PATCH] Accept new baselines --- tests/baselines/reference/fatarrowfunctions.symbols | 2 +- .../reference/fatarrowfunctionsInFunctions.symbols | 2 +- tests/baselines/reference/objectSpread.symbols | 2 +- tests/baselines/reference/selfInLambdas.symbols | 4 ++-- tests/baselines/reference/thisBinding2.symbols | 2 +- .../reference/thisTypeInObjectLiterals.symbols | 12 ++++++------ .../reference/throwInEnclosingStatements.symbols | 2 +- tests/baselines/reference/underscoreTest1.symbols | 4 ++-- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/baselines/reference/fatarrowfunctions.symbols b/tests/baselines/reference/fatarrowfunctions.symbols index 1e5fb4f3178..25213a9bbf8 100644 --- a/tests/baselines/reference/fatarrowfunctions.symbols +++ b/tests/baselines/reference/fatarrowfunctions.symbols @@ -165,7 +165,7 @@ var messenger = { >setTimeout : Symbol(setTimeout, Decl(fatarrowfunctions.ts, 34, 1)) >this.message.toString : Symbol(String.toString, Decl(lib.d.ts, --, --)) >this.message : Symbol(message, Decl(fatarrowfunctions.ts, 38, 17)) ->this : Symbol(__object, Decl(fatarrowfunctions.ts, 38, 15)) +>this : Symbol(messenger, Decl(fatarrowfunctions.ts, 38, 15)) >message : Symbol(message, Decl(fatarrowfunctions.ts, 38, 17)) >toString : Symbol(String.toString, Decl(lib.d.ts, --, --)) } diff --git a/tests/baselines/reference/fatarrowfunctionsInFunctions.symbols b/tests/baselines/reference/fatarrowfunctionsInFunctions.symbols index f1123f4aa96..977dd39460d 100644 --- a/tests/baselines/reference/fatarrowfunctionsInFunctions.symbols +++ b/tests/baselines/reference/fatarrowfunctionsInFunctions.symbols @@ -16,7 +16,7 @@ var messenger = { var _self = this; >_self : Symbol(_self, Decl(fatarrowfunctionsInFunctions.ts, 5, 11)) ->this : Symbol(__object, Decl(fatarrowfunctionsInFunctions.ts, 2, 15)) +>this : Symbol(messenger, Decl(fatarrowfunctionsInFunctions.ts, 2, 15)) setTimeout(function() { >setTimeout : Symbol(setTimeout, Decl(fatarrowfunctionsInFunctions.ts, 0, 0)) diff --git a/tests/baselines/reference/objectSpread.symbols b/tests/baselines/reference/objectSpread.symbols index 3487f757aeb..a734066d5e7 100644 --- a/tests/baselines/reference/objectSpread.symbols +++ b/tests/baselines/reference/objectSpread.symbols @@ -201,7 +201,7 @@ let cplus: { p: number, plus(): void } = { ...c, plus() { return this.p + 1; } } >c : Symbol(c, Decl(objectSpread.ts, 45, 3)) >plus : Symbol(plus, Decl(objectSpread.ts, 49, 48)) >this.p : Symbol(C.p, Decl(objectSpread.ts, 44, 9)) ->this : Symbol(__object, Decl(objectSpread.ts, 49, 40)) +>this : Symbol(cplus, Decl(objectSpread.ts, 49, 40)) >p : Symbol(C.p, Decl(objectSpread.ts, 44, 9)) cplus.plus(); diff --git a/tests/baselines/reference/selfInLambdas.symbols b/tests/baselines/reference/selfInLambdas.symbols index 6f91adefcc1..0a51113710b 100644 --- a/tests/baselines/reference/selfInLambdas.symbols +++ b/tests/baselines/reference/selfInLambdas.symbols @@ -38,13 +38,13 @@ var o = { this.counter++ >this.counter : Symbol(counter, Decl(selfInLambdas.ts, 10, 9)) ->this : Symbol(__object, Decl(selfInLambdas.ts, 10, 7)) +>this : Symbol(o, Decl(selfInLambdas.ts, 10, 7)) >counter : Symbol(counter, Decl(selfInLambdas.ts, 10, 9)) var f = () => this.counter; >f : Symbol(f, Decl(selfInLambdas.ts, 18, 15)) >this.counter : Symbol(counter, Decl(selfInLambdas.ts, 10, 9)) ->this : Symbol(__object, Decl(selfInLambdas.ts, 10, 7)) +>this : Symbol(o, Decl(selfInLambdas.ts, 10, 7)) >counter : Symbol(counter, Decl(selfInLambdas.ts, 10, 9)) } diff --git a/tests/baselines/reference/thisBinding2.symbols b/tests/baselines/reference/thisBinding2.symbols index 507b7e48419..f8436f5248b 100644 --- a/tests/baselines/reference/thisBinding2.symbols +++ b/tests/baselines/reference/thisBinding2.symbols @@ -51,7 +51,7 @@ var messenger = { >setTimeout : Symbol(setTimeout, Decl(thisBinding2.ts, 12, 1)) >x : Symbol(x, Decl(thisBinding2.ts, 17, 37)) >this.message : Symbol(message, Decl(thisBinding2.ts, 14, 17)) ->this : Symbol(__object, Decl(thisBinding2.ts, 14, 15)) +>this : Symbol(messenger, Decl(thisBinding2.ts, 14, 15)) >message : Symbol(message, Decl(thisBinding2.ts, 14, 17)) } }; diff --git a/tests/baselines/reference/thisTypeInObjectLiterals.symbols b/tests/baselines/reference/thisTypeInObjectLiterals.symbols index ad786a4a247..fd6d6ecebd5 100644 --- a/tests/baselines/reference/thisTypeInObjectLiterals.symbols +++ b/tests/baselines/reference/thisTypeInObjectLiterals.symbols @@ -11,7 +11,7 @@ let o = { return this.d.length; >this.d.length : Symbol(String.length, Decl(lib.d.ts, --, --)) >this.d : Symbol(d, Decl(thisTypeInObjectLiterals.ts, 0, 9)) ->this : Symbol(__object, Decl(thisTypeInObjectLiterals.ts, 0, 7)) +>this : Symbol(o, Decl(thisTypeInObjectLiterals.ts, 0, 7)) >d : Symbol(d, Decl(thisTypeInObjectLiterals.ts, 0, 9)) >length : Symbol(String.length, Decl(lib.d.ts, --, --)) @@ -22,7 +22,7 @@ let o = { return this.d.length; >this.d.length : Symbol(String.length, Decl(lib.d.ts, --, --)) >this.d : Symbol(d, Decl(thisTypeInObjectLiterals.ts, 0, 9)) ->this : Symbol(__object, Decl(thisTypeInObjectLiterals.ts, 0, 7)) +>this : Symbol(o, Decl(thisTypeInObjectLiterals.ts, 0, 7)) >d : Symbol(d, Decl(thisTypeInObjectLiterals.ts, 0, 9)) >length : Symbol(String.length, Decl(lib.d.ts, --, --)) } @@ -39,10 +39,10 @@ let mutuallyRecursive = { return this.passthrough(this.a); >this.passthrough : Symbol(passthrough, Decl(thisTypeInObjectLiterals.ts, 14, 6)) ->this : Symbol(__object, Decl(thisTypeInObjectLiterals.ts, 10, 23)) +>this : Symbol(mutuallyRecursive, Decl(thisTypeInObjectLiterals.ts, 10, 23)) >passthrough : Symbol(passthrough, Decl(thisTypeInObjectLiterals.ts, 14, 6)) >this.a : Symbol(a, Decl(thisTypeInObjectLiterals.ts, 10, 25)) ->this : Symbol(__object, Decl(thisTypeInObjectLiterals.ts, 10, 23)) +>this : Symbol(mutuallyRecursive, Decl(thisTypeInObjectLiterals.ts, 10, 23)) >a : Symbol(a, Decl(thisTypeInObjectLiterals.ts, 10, 25)) }, @@ -52,7 +52,7 @@ let mutuallyRecursive = { return this.sub1(n); >this.sub1 : Symbol(sub1, Decl(thisTypeInObjectLiterals.ts, 17, 6)) ->this : Symbol(__object, Decl(thisTypeInObjectLiterals.ts, 10, 23)) +>this : Symbol(mutuallyRecursive, Decl(thisTypeInObjectLiterals.ts, 10, 23)) >sub1 : Symbol(sub1, Decl(thisTypeInObjectLiterals.ts, 17, 6)) >n : Symbol(n, Decl(thisTypeInObjectLiterals.ts, 15, 16)) @@ -66,7 +66,7 @@ let mutuallyRecursive = { return this.passthrough(n - 1); >this.passthrough : Symbol(passthrough, Decl(thisTypeInObjectLiterals.ts, 14, 6)) ->this : Symbol(__object, Decl(thisTypeInObjectLiterals.ts, 10, 23)) +>this : Symbol(mutuallyRecursive, Decl(thisTypeInObjectLiterals.ts, 10, 23)) >passthrough : Symbol(passthrough, Decl(thisTypeInObjectLiterals.ts, 14, 6)) >n : Symbol(n, Decl(thisTypeInObjectLiterals.ts, 18, 9)) } diff --git a/tests/baselines/reference/throwInEnclosingStatements.symbols b/tests/baselines/reference/throwInEnclosingStatements.symbols index 94f7baee021..36dcd3cfcbd 100644 --- a/tests/baselines/reference/throwInEnclosingStatements.symbols +++ b/tests/baselines/reference/throwInEnclosingStatements.symbols @@ -89,7 +89,7 @@ var aa = { >biz : Symbol(biz, Decl(throwInEnclosingStatements.ts, 41, 10)) throw this; ->this : Symbol(__object, Decl(throwInEnclosingStatements.ts, 40, 8)) +>this : Symbol(aa, Decl(throwInEnclosingStatements.ts, 40, 8)) } } diff --git a/tests/baselines/reference/underscoreTest1.symbols b/tests/baselines/reference/underscoreTest1.symbols index 459674cdbe8..3b578be8165 100644 --- a/tests/baselines/reference/underscoreTest1.symbols +++ b/tests/baselines/reference/underscoreTest1.symbols @@ -396,14 +396,14 @@ var buttonView = { >onClick : Symbol(onClick, Decl(underscoreTest1_underscoreTests.ts, 97, 24)) >alert : Symbol(alert, Decl(underscoreTest1_underscoreTests.ts, 2, 14)) >this.label : Symbol(label, Decl(underscoreTest1_underscoreTests.ts, 96, 18)) ->this : Symbol(__object, Decl(underscoreTest1_underscoreTests.ts, 96, 16)) +>this : Symbol(buttonView, Decl(underscoreTest1_underscoreTests.ts, 96, 16)) >label : Symbol(label, Decl(underscoreTest1_underscoreTests.ts, 96, 18)) onHover: function () { alert('hovering: ' + this.label); } >onHover : Symbol(onHover, Decl(underscoreTest1_underscoreTests.ts, 98, 62)) >alert : Symbol(alert, Decl(underscoreTest1_underscoreTests.ts, 2, 14)) >this.label : Symbol(label, Decl(underscoreTest1_underscoreTests.ts, 96, 18)) ->this : Symbol(__object, Decl(underscoreTest1_underscoreTests.ts, 96, 16)) +>this : Symbol(buttonView, Decl(underscoreTest1_underscoreTests.ts, 96, 16)) >label : Symbol(label, Decl(underscoreTest1_underscoreTests.ts, 96, 18)) };