Skip to content

Commit 84760c2

Browse files
committed
Accepting new baselines
1 parent 0e8b6df commit 84760c2

22 files changed

+100
-106
lines changed

tests/baselines/reference/APISample_compile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,8 @@ declare module "typescript" {
756756
type ImportSpecifier = ImportOrExportSpecifier;
757757
type ExportSpecifier = ImportOrExportSpecifier;
758758
interface ExportAssignment extends Statement, ModuleElement {
759-
exportName: Identifier;
759+
isExportEquals?: boolean;
760+
expression: Expression;
760761
}
761762
interface FileReference extends TextRange {
762763
fileName: string;

tests/baselines/reference/APISample_compile.types

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,9 +2304,12 @@ declare module "typescript" {
23042304
>Statement : Statement
23052305
>ModuleElement : ModuleElement
23062306

2307-
exportName: Identifier;
2308-
>exportName : Identifier
2309-
>Identifier : Identifier
2307+
isExportEquals?: boolean;
2308+
>isExportEquals : boolean
2309+
2310+
expression: Expression;
2311+
>expression : Expression
2312+
>Expression : Expression
23102313
}
23112314
interface FileReference extends TextRange {
23122315
>FileReference : FileReference

tests/baselines/reference/APISample_linter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,8 @@ declare module "typescript" {
787787
type ImportSpecifier = ImportOrExportSpecifier;
788788
type ExportSpecifier = ImportOrExportSpecifier;
789789
interface ExportAssignment extends Statement, ModuleElement {
790-
exportName: Identifier;
790+
isExportEquals?: boolean;
791+
expression: Expression;
791792
}
792793
interface FileReference extends TextRange {
793794
fileName: string;

tests/baselines/reference/APISample_linter.types

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,9 +2450,12 @@ declare module "typescript" {
24502450
>Statement : Statement
24512451
>ModuleElement : ModuleElement
24522452

2453-
exportName: Identifier;
2454-
>exportName : Identifier
2455-
>Identifier : Identifier
2453+
isExportEquals?: boolean;
2454+
>isExportEquals : boolean
2455+
2456+
expression: Expression;
2457+
>expression : Expression
2458+
>Expression : Expression
24562459
}
24572460
interface FileReference extends TextRange {
24582461
>FileReference : FileReference

tests/baselines/reference/APISample_transform.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,8 @@ declare module "typescript" {
788788
type ImportSpecifier = ImportOrExportSpecifier;
789789
type ExportSpecifier = ImportOrExportSpecifier;
790790
interface ExportAssignment extends Statement, ModuleElement {
791-
exportName: Identifier;
791+
isExportEquals?: boolean;
792+
expression: Expression;
792793
}
793794
interface FileReference extends TextRange {
794795
fileName: string;

tests/baselines/reference/APISample_transform.types

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,9 +2400,12 @@ declare module "typescript" {
24002400
>Statement : Statement
24012401
>ModuleElement : ModuleElement
24022402

2403-
exportName: Identifier;
2404-
>exportName : Identifier
2405-
>Identifier : Identifier
2403+
isExportEquals?: boolean;
2404+
>isExportEquals : boolean
2405+
2406+
expression: Expression;
2407+
>expression : Expression
2408+
>Expression : Expression
24062409
}
24072410
interface FileReference extends TextRange {
24082411
>FileReference : FileReference

tests/baselines/reference/APISample_watcher.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,8 @@ declare module "typescript" {
825825
type ImportSpecifier = ImportOrExportSpecifier;
826826
type ExportSpecifier = ImportOrExportSpecifier;
827827
interface ExportAssignment extends Statement, ModuleElement {
828-
exportName: Identifier;
828+
isExportEquals?: boolean;
829+
expression: Expression;
829830
}
830831
interface FileReference extends TextRange {
831832
fileName: string;

tests/baselines/reference/APISample_watcher.types

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,9 +2573,12 @@ declare module "typescript" {
25732573
>Statement : Statement
25742574
>ModuleElement : ModuleElement
25752575

2576-
exportName: Identifier;
2577-
>exportName : Identifier
2578-
>Identifier : Identifier
2576+
isExportEquals?: boolean;
2577+
>isExportEquals : boolean
2578+
2579+
expression: Expression;
2580+
>expression : Expression
2581+
>Expression : Expression
25792582
}
25802583
interface FileReference extends TextRange {
25812584
>FileReference : FileReference

tests/baselines/reference/exportAssignDottedName.errors.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
tests/cases/conformance/externalModules/foo1.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
2-
tests/cases/conformance/externalModules/foo2.ts(2,14): error TS1005: ';' expected.
3-
tests/cases/conformance/externalModules/foo2.ts(2,15): error TS2304: Cannot find name 'x'.
42

53

6-
==== tests/cases/conformance/externalModules/foo2.ts (2 errors) ====
4+
==== tests/cases/conformance/externalModules/foo2.ts (0 errors) ====
75
import foo1 = require('./foo1');
8-
export = foo1.x; // Error, export assignment must be identifier only
9-
~
10-
!!! error TS1005: ';' expected.
11-
~
12-
!!! error TS2304: Cannot find name 'x'.
6+
export = foo1.x; // Ok
137

148
==== tests/cases/conformance/externalModules/foo1.ts (1 errors) ====
159
export function x(){

tests/baselines/reference/exportAssignDottedName.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function x(){
77

88
//// [foo2.ts]
99
import foo1 = require('./foo1');
10-
export = foo1.x; // Error, export assignment must be identifier only
10+
export = foo1.x; // Ok
1111

1212

1313
//// [foo1.js]
@@ -17,5 +17,4 @@ function x() {
1717
exports.x = x;
1818
//// [foo2.js]
1919
var foo1 = require('./foo1');
20-
x; // Error, export assignment must be identifier only
21-
module.exports = foo1;
20+
module.exports = foo1.x;

0 commit comments

Comments
 (0)