Skip to content

Commit 6744c10

Browse files
committed
Update baselines
1 parent daf14b1 commit 6744c10

File tree

234 files changed

+40980
-41387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+40980
-41387
lines changed

src/harness/fakesHosts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export class CompilerHost implements ts.CompilerHost {
243243
if (sys instanceof vfs.FileSystem) sys = new System(sys);
244244
this.sys = sys;
245245
this.defaultLibLocation = sys.vfs.meta.get("defaultLibLocation") || "";
246-
this._newLine = ts.getNewLineCharacter(options, () => this.sys.newLine);
246+
this._newLine = ts.getNewLineCharacter(options);
247247
this._sourceFiles = new collections.SortedMap<string, ts.SourceFile>({ comparer: sys.vfs.stringComparer, sort: "insertion" });
248248
this._setParentNodes = setParentNodes;
249249
this._outputsMap = new collections.SortedMap(this.vfs.stringComparer);

tests/baselines/reference/compileOnSaveWorksWhenEmitBlockingErrorOnOtherFile.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ Diagnostics:
66
EmitSkipped: false
77

88
FileName : /tests/cases/fourslash/a.js
9-
function foo2() { return 30; } // no error - should emit a.js
9+
function foo2() { return 30; } // no error - should emit a.js
1010

tests/baselines/reference/completionsClassMembers2.baseline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
"kind": "method",
173173
"kindModifiers": "",
174174
"sortText": "17",
175-
"insertText": "method(): void {\r\n}",
175+
"insertText": "method(): void {\n}",
176176
"displayParts": [
177177
{
178178
"text": "(",
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
EmitSkipped: false
22

33
FileName : /tests/cases/fourslash/shims-pp/inputFile1.js
4-
var x = 5;
5-
var Bar = /** @class */ (function () {
6-
function Bar() {
7-
}
8-
return Bar;
9-
}());
4+
var x = 5;
5+
var Bar = /** @class */ (function () {
6+
function Bar() {
7+
}
8+
return Bar;
9+
}());
1010

1111
FileName : /tests/cases/fourslash/shims-pp/inputFile1.d.ts
12-
declare var x: number;
13-
declare class Bar {
14-
x: string;
15-
y: number;
16-
}
12+
declare var x: number;
13+
declare class Bar {
14+
x: string;
15+
y: number;
16+
}
1717

1818
EmitSkipped: false
1919

2020
FileName : /tests/cases/fourslash/shims-pp/inputFile2.js
21-
var x1 = "hello world";
22-
var Foo = /** @class */ (function () {
23-
function Foo() {
24-
}
25-
return Foo;
26-
}());
21+
var x1 = "hello world";
22+
var Foo = /** @class */ (function () {
23+
function Foo() {
24+
}
25+
return Foo;
26+
}());
2727

2828
FileName : /tests/cases/fourslash/shims-pp/inputFile2.d.ts
29-
declare var x1: string;
30-
declare class Foo {
31-
x: string;
32-
y: number;
33-
}
29+
declare var x1: string;
30+
declare class Foo {
31+
x: string;
32+
y: number;
33+
}
3434

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
EmitSkipped: false
22

33
FileName : /tests/cases/fourslash/shims/inputFile1.js
4-
var x = 5;
5-
var Bar = /** @class */ (function () {
6-
function Bar() {
7-
}
8-
return Bar;
9-
}());
4+
var x = 5;
5+
var Bar = /** @class */ (function () {
6+
function Bar() {
7+
}
8+
return Bar;
9+
}());
1010

1111
FileName : /tests/cases/fourslash/shims/inputFile1.d.ts
12-
declare var x: number;
13-
declare class Bar {
14-
x: string;
15-
y: number;
16-
}
12+
declare var x: number;
13+
declare class Bar {
14+
x: string;
15+
y: number;
16+
}
1717

1818
EmitSkipped: false
1919

2020
FileName : /tests/cases/fourslash/shims/inputFile2.js
21-
var x1 = "hello world";
22-
var Foo = /** @class */ (function () {
23-
function Foo() {
24-
}
25-
return Foo;
26-
}());
21+
var x1 = "hello world";
22+
var Foo = /** @class */ (function () {
23+
function Foo() {
24+
}
25+
return Foo;
26+
}());
2727

2828
FileName : /tests/cases/fourslash/shims/inputFile2.d.ts
29-
declare var x1: string;
30-
declare class Foo {
31-
x: string;
32-
y: number;
33-
}
29+
declare var x1: string;
30+
declare class Foo {
31+
x: string;
32+
y: number;
33+
}
3434

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
EmitSkipped: false
22

33
FileName : /tests/cases/fourslash/inputFile1.js
4-
var x = 5;
5-
var Bar = /** @class */ (function () {
6-
function Bar() {
7-
}
8-
return Bar;
9-
}());
4+
var x = 5;
5+
var Bar = /** @class */ (function () {
6+
function Bar() {
7+
}
8+
return Bar;
9+
}());
1010

1111
FileName : /tests/cases/fourslash/inputFile1.d.ts
12-
declare var x: number;
13-
declare class Bar {
14-
x: string;
15-
y: number;
16-
}
12+
declare var x: number;
13+
declare class Bar {
14+
x: string;
15+
y: number;
16+
}
1717

1818
EmitSkipped: false
1919

2020
FileName : /tests/cases/fourslash/inputFile2.js
21-
var x1 = "hello world";
22-
var Foo = /** @class */ (function () {
23-
function Foo() {
24-
}
25-
return Foo;
26-
}());
21+
var x1 = "hello world";
22+
var Foo = /** @class */ (function () {
23+
function Foo() {
24+
}
25+
return Foo;
26+
}());
2727

2828
FileName : /tests/cases/fourslash/inputFile2.d.ts
29-
declare var x1: string;
30-
declare class Foo {
31-
x: string;
32-
y: number;
33-
}
29+
declare var x1: string;
30+
declare class Foo {
31+
x: string;
32+
y: number;
33+
}
3434

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
EmitSkipped: false
22

33
FileName : declSingleFile.js
4-
var x = 5;
5-
var Bar = /** @class */ (function () {
6-
function Bar() {
7-
}
8-
return Bar;
9-
}());
10-
var x1 = "hello world";
11-
var Foo = /** @class */ (function () {
12-
function Foo() {
13-
}
14-
return Foo;
15-
}());
4+
var x = 5;
5+
var Bar = /** @class */ (function () {
6+
function Bar() {
7+
}
8+
return Bar;
9+
}());
10+
var x1 = "hello world";
11+
var Foo = /** @class */ (function () {
12+
function Foo() {
13+
}
14+
return Foo;
15+
}());
1616

1717
FileName : declSingleFile.d.ts
18-
declare var x: number;
19-
declare class Bar {
20-
x: string;
21-
y: number;
22-
}
23-
declare var x1: string;
24-
declare class Foo {
25-
x: string;
26-
y: number;
27-
}
18+
declare var x: number;
19+
declare class Bar {
20+
x: string;
21+
y: number;
22+
}
23+
declare var x1: string;
24+
declare class Foo {
25+
x: string;
26+
y: number;
27+
}
2828

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
EmitSkipped: false
22

33
FileName : declSingleFile.js
4-
var x = 5;
5-
var Bar = /** @class */ (function () {
6-
function Bar() {
7-
}
8-
return Bar;
9-
}());
4+
var x = 5;
5+
var Bar = /** @class */ (function () {
6+
function Bar() {
7+
}
8+
return Bar;
9+
}());
1010

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
EmitSkipped: false
22

33
FileName : declSingleFile.js
4-
var x = 5;
5-
var Bar = /** @class */ (function () {
6-
function Bar() {
7-
}
8-
return Bar;
9-
}());
10-
var x = "world";
11-
var Bar2 = /** @class */ (function () {
12-
function Bar2() {
13-
}
14-
return Bar2;
15-
}());
4+
var x = 5;
5+
var Bar = /** @class */ (function () {
6+
function Bar() {
7+
}
8+
return Bar;
9+
}());
10+
var x = "world";
11+
var Bar2 = /** @class */ (function () {
12+
function Bar2() {
13+
}
14+
return Bar2;
15+
}());
1616

tests/baselines/reference/getEmitOutputMapRoots.baseline

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ EmitSkipped: false
33
FileName : declSingleFile.js.map
44
{"version":3,"file":"declSingleFile.js","sourceRoot":"","sources":["../inputFile.ts"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,GAAG,CAAC;AACZ,IAAI,GAAG,GAAG,aAAa,CAAC;AACxB;IAAA;IAGA,CAAC;IAAD,QAAC;AAAD,CAAC,AAHD,IAGC"}
55
FileName : declSingleFile.js
6-
var x = 109;
7-
var foo = "hello world";
8-
var M = /** @class */ (function () {
9-
function M() {
10-
}
11-
return M;
12-
}());
6+
var x = 109;
7+
var foo = "hello world";
8+
var M = /** @class */ (function () {
9+
function M() {
10+
}
11+
return M;
12+
}());
1313
//# sourceMappingURL=tests/cases/fourslash/mapRootDir/declSingleFile.js.map
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
EmitSkipped: false
22

33
FileName : /tests/cases/fourslash/inputFile.js
4-
var x;
5-
var M = /** @class */ (function () {
6-
function M() {
7-
}
8-
return M;
9-
}());
4+
var x;
5+
var M = /** @class */ (function () {
6+
function M() {
7+
}
8+
return M;
9+
}());
1010

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
EmitSkipped: false
22

33
FileName : /tests/cases/fourslash/inputFile2.js
4-
var x;
5-
var Foo = /** @class */ (function () {
6-
function Foo() {
7-
}
8-
return Foo;
9-
}());
4+
var x;
5+
var Foo = /** @class */ (function () {
6+
function Foo() {
7+
}
8+
return Foo;
9+
}());
1010

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
EmitSkipped: false
22

33
FileName : out.js
4-
/// <reference path='my.d.ts' />
5-
var foo;
6-
(function (foo) {
7-
var bar;
8-
(function (bar) {
9-
var baz1 = bar.Baz.prototype; // Should emit as bar.Baz.prototype
10-
})(bar = foo.bar || (foo.bar = {}));
11-
})(foo || (foo = {}));
12-
var x;
4+
/// <reference path='my.d.ts' />
5+
var foo;
6+
(function (foo) {
7+
var bar;
8+
(function (bar) {
9+
var baz1 = bar.Baz.prototype; // Should emit as bar.Baz.prototype
10+
})(bar = foo.bar || (foo.bar = {}));
11+
})(foo || (foo = {}));
12+
var x;
1313

0 commit comments

Comments
 (0)