Skip to content

Commit 2fd5667

Browse files
author
Kanchalai Tanglertsampan
committed
Update baselines
1 parent a39f9ef commit 2fd5667

35 files changed

+237
-169
lines changed

tests/baselines/reference/jsxFactoryIdentifier.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ class A {
107107
return [
108108
<meta content="helloworld"></meta>,
109109
>meta : Symbol(unknown)
110-
>content : Symbol(unknown)
110+
>content : Symbol(content, Decl(test.tsx, 11, 8))
111111
>meta : Symbol(unknown)
112112

113113
<meta content={c.a!.b}></meta>
114114
>meta : Symbol(unknown)
115-
>content : Symbol(unknown)
115+
>content : Symbol(content, Decl(test.tsx, 12, 8))
116116
>c.a!.b : Symbol(b, Decl(test.tsx, 3, 6))
117117
>c.a : Symbol(a, Decl(test.tsx, 2, 8))
118118
>c : Symbol(c, Decl(test.tsx, 2, 3))

tests/baselines/reference/jsxFactoryIdentifier.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ class A {
120120
<meta content="helloworld"></meta>,
121121
><meta content="helloworld"></meta> : any
122122
>meta : any
123-
>content : any
123+
>content : string
124124
>meta : any
125125

126126
<meta content={c.a!.b}></meta>
127127
><meta content={c.a!.b}></meta> : any
128128
>meta : any
129-
>content : any
129+
>content : string
130130
>c.a!.b : string
131131
>c.a! : { b: string; }
132132
>c.a : { b: string; }

tests/baselines/reference/jsxFactoryQualifiedName.symbols

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ class A {
101101
return [
102102
<meta content="helloworld"></meta>,
103103
>meta : Symbol(unknown)
104-
>content : Symbol(unknown)
104+
>content : Symbol(content, Decl(test.tsx, 11, 8))
105105
>meta : Symbol(unknown)
106106

107107
<meta content={c.a!.b}></meta>
108108
>meta : Symbol(unknown)
109-
>content : Symbol(unknown)
109+
>content : Symbol(content, Decl(test.tsx, 12, 8))
110110
>c.a!.b : Symbol(b, Decl(test.tsx, 3, 6))
111111
>c.a : Symbol(a, Decl(test.tsx, 2, 8))
112112
>c : Symbol(c, Decl(test.tsx, 2, 3))

tests/baselines/reference/jsxFactoryQualifiedName.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ class A {
114114
<meta content="helloworld"></meta>,
115115
><meta content="helloworld"></meta> : any
116116
>meta : any
117-
>content : any
117+
>content : string
118118
>meta : any
119119

120120
<meta content={c.a!.b}></meta>
121121
><meta content={c.a!.b}></meta> : any
122122
>meta : any
123-
>content : any
123+
>content : string
124124
>c.a!.b : string
125125
>c.a! : { b: string; }
126126
>c.a : { b: string; }

tests/baselines/reference/tsxDefaultAttributesResolution1.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@ let p = <Poisoned x/>;
1616

1717
//// [file.jsx]
1818
"use strict";
19-
var __extends = (this && this.__extends) || function (d, b) {
20-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
21-
function __() { this.constructor = d; }
22-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23-
};
19+
var __extends = (this && this.__extends) || (function () {
20+
var extendStatics = Object.setPrototypeOf ||
21+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
22+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
23+
return function (d, b) {
24+
extendStatics(d, b);
25+
function __() { this.constructor = d; }
26+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27+
};
28+
})();
2429
var React = require("react");
2530
var Poisoned = (function (_super) {
2631
__extends(Poisoned, _super);
2732
function Poisoned() {
28-
return _super.apply(this, arguments) || this;
33+
return _super !== null && _super.apply(this, arguments) || this;
2934
}
3035
Poisoned.prototype.render = function () {
3136
return <div>Hello</div>;

tests/baselines/reference/tsxDefaultAttributesResolution2.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@ let p = <Poisoned x/>;
1616

1717
//// [file.jsx]
1818
"use strict";
19-
var __extends = (this && this.__extends) || function (d, b) {
20-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
21-
function __() { this.constructor = d; }
22-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23-
};
19+
var __extends = (this && this.__extends) || (function () {
20+
var extendStatics = Object.setPrototypeOf ||
21+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
22+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
23+
return function (d, b) {
24+
extendStatics(d, b);
25+
function __() { this.constructor = d; }
26+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27+
};
28+
})();
2429
var React = require("react");
2530
var Poisoned = (function (_super) {
2631
__extends(Poisoned, _super);
2732
function Poisoned() {
28-
return _super.apply(this, arguments) || this;
33+
return _super !== null && _super.apply(this, arguments) || this;
2934
}
3035
Poisoned.prototype.render = function () {
3136
return <div>Hello</div>;

tests/baselines/reference/tsxDefaultAttributesResolution3.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@ let p = <Poisoned x/>;
1616

1717
//// [file.jsx]
1818
"use strict";
19-
var __extends = (this && this.__extends) || function (d, b) {
20-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
21-
function __() { this.constructor = d; }
22-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23-
};
19+
var __extends = (this && this.__extends) || (function () {
20+
var extendStatics = Object.setPrototypeOf ||
21+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
22+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
23+
return function (d, b) {
24+
extendStatics(d, b);
25+
function __() { this.constructor = d; }
26+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27+
};
28+
})();
2429
var React = require("react");
2530
var Poisoned = (function (_super) {
2631
__extends(Poisoned, _super);
2732
function Poisoned() {
28-
return _super.apply(this, arguments) || this;
33+
return _super !== null && _super.apply(this, arguments) || this;
2934
}
3035
Poisoned.prototype.render = function () {
3136
return <div>Hello</div>;

tests/baselines/reference/tsxEmit1.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ var selfClosed7 = <div x={p} y='p' />;
6060
>selfClosed7 : JSX.Element
6161
><div x={p} y='p' /> : JSX.Element
6262
>div : any
63-
>x : undefined
64-
>p : undefined
63+
>x : any
64+
>p : any
6565
>y : string
6666

6767
var openClosed1 = <div></div>;
@@ -82,7 +82,7 @@ var openClosed3 = <div n='m'>{p}</div>;
8282
><div n='m'>{p}</div> : JSX.Element
8383
>div : any
8484
>n : string
85-
>p : undefined
85+
>p : any
8686
>div : any
8787

8888
var openClosed4 = <div n='m'>{p < p}</div>;

tests/baselines/reference/tsxReactEmit1.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ var selfClosed7 = <div x={p} y='p' b />;
6262
>selfClosed7 : JSX.Element
6363
><div x={p} y='p' b /> : JSX.Element
6464
>div : any
65-
>x : undefined
66-
>p : undefined
65+
>x : any
66+
>p : any
6767
>y : string
6868
>b : true
6969

@@ -85,7 +85,7 @@ var openClosed3 = <div n='m'>{p}</div>;
8585
><div n='m'>{p}</div> : JSX.Element
8686
>div : any
8787
>n : string
88-
>p : undefined
88+
>p : any
8989
>div : any
9090

9191
var openClosed4 = <div n='m'>{p < p}</div>;

tests/baselines/reference/tsxReactEmit5.types

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ var spread1 = <div x='' {...foo} y='' />;
3434
>x : string
3535
>foo : any
3636
>y : string
37+

0 commit comments

Comments
 (0)