Skip to content

Commit 43af871

Browse files
committed
Accepting new baselines
1 parent 234358e commit 43af871

File tree

93 files changed

+513
-572
lines changed

Some content is hidden

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

93 files changed

+513
-572
lines changed

tests/baselines/reference/APISample_compile.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,7 @@ declare module "typescript" {
712712
name: Identifier;
713713
members: NodeArray<EnumMember>;
714714
}
715-
interface ExportContainer {
716-
exportStars?: ExportDeclaration[];
717-
}
718-
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
715+
interface ModuleDeclaration extends Declaration, ModuleElement {
719716
name: Identifier | LiteralExpression;
720717
body: ModuleBlock | ModuleDeclaration;
721718
}
@@ -740,7 +737,7 @@ declare module "typescript" {
740737
interface NamespaceImport extends Declaration {
741738
name: Identifier;
742739
}
743-
interface ExportDeclaration extends Statement, ModuleElement {
740+
interface ExportDeclaration extends Declaration, ModuleElement {
744741
exportClause?: NamedExports;
745742
moduleSpecifier?: Expression;
746743
}
@@ -755,7 +752,7 @@ declare module "typescript" {
755752
}
756753
type ImportSpecifier = ImportOrExportSpecifier;
757754
type ExportSpecifier = ImportOrExportSpecifier;
758-
interface ExportAssignment extends Statement, ModuleElement {
755+
interface ExportAssignment extends Declaration, ModuleElement {
759756
isExportEquals?: boolean;
760757
expression: Expression;
761758
}
@@ -765,7 +762,7 @@ declare module "typescript" {
765762
interface CommentRange extends TextRange {
766763
hasTrailingNewLine?: boolean;
767764
}
768-
interface SourceFile extends Declaration, ExportContainer {
765+
interface SourceFile extends Declaration {
769766
statements: NodeArray<ModuleElement>;
770767
endOfFileToken: Node;
771768
fileName: string;
@@ -929,7 +926,7 @@ declare module "typescript" {
929926
interface EmitResolver {
930927
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
931928
getExpressionNameSubstitution(node: Identifier): string;
932-
getExportAssignmentName(node: SourceFile): string;
929+
hasExportDefaultValue(node: SourceFile): boolean;
933930
isReferencedImportDeclaration(node: Node): boolean;
934931
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
935932
getNodeCheckFlags(node: Node): NodeCheckFlags;
@@ -973,6 +970,7 @@ declare module "typescript" {
973970
Prototype = 134217728,
974971
UnionProperty = 268435456,
975972
Optional = 536870912,
973+
ExportStar = 1073741824,
976974
Enum = 384,
977975
Variable = 3,
978976
Value = 107455,
@@ -1026,10 +1024,9 @@ declare module "typescript" {
10261024
declaredType?: Type;
10271025
mapper?: TypeMapper;
10281026
referenced?: boolean;
1029-
exportAssignmentChecked?: boolean;
1030-
exportAssignmentSymbol?: Symbol;
10311027
unionType?: UnionType;
10321028
resolvedExports?: SymbolTable;
1029+
exportsChecked?: boolean;
10331030
}
10341031
interface TransientSymbol extends Symbol, SymbolLinks {
10351032
}

tests/baselines/reference/APISample_compile.types

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,18 +2160,10 @@ declare module "typescript" {
21602160
>NodeArray : NodeArray<T>
21612161
>EnumMember : EnumMember
21622162
}
2163-
interface ExportContainer {
2164-
>ExportContainer : ExportContainer
2165-
2166-
exportStars?: ExportDeclaration[];
2167-
>exportStars : ExportDeclaration[]
2168-
>ExportDeclaration : ExportDeclaration
2169-
}
2170-
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
2163+
interface ModuleDeclaration extends Declaration, ModuleElement {
21712164
>ModuleDeclaration : ModuleDeclaration
21722165
>Declaration : Declaration
21732166
>ModuleElement : ModuleElement
2174-
>ExportContainer : ExportContainer
21752167

21762168
name: Identifier | LiteralExpression;
21772169
>name : Identifier | LiteralExpression
@@ -2249,9 +2241,9 @@ declare module "typescript" {
22492241
>name : Identifier
22502242
>Identifier : Identifier
22512243
}
2252-
interface ExportDeclaration extends Statement, ModuleElement {
2244+
interface ExportDeclaration extends Declaration, ModuleElement {
22532245
>ExportDeclaration : ExportDeclaration
2254-
>Statement : Statement
2246+
>Declaration : Declaration
22552247
>ModuleElement : ModuleElement
22562248

22572249
exportClause?: NamedExports;
@@ -2299,9 +2291,9 @@ declare module "typescript" {
22992291
>ExportSpecifier : ImportOrExportSpecifier
23002292
>ImportOrExportSpecifier : ImportOrExportSpecifier
23012293

2302-
interface ExportAssignment extends Statement, ModuleElement {
2294+
interface ExportAssignment extends Declaration, ModuleElement {
23032295
>ExportAssignment : ExportAssignment
2304-
>Statement : Statement
2296+
>Declaration : Declaration
23052297
>ModuleElement : ModuleElement
23062298

23072299
isExportEquals?: boolean;
@@ -2325,10 +2317,9 @@ declare module "typescript" {
23252317
hasTrailingNewLine?: boolean;
23262318
>hasTrailingNewLine : boolean
23272319
}
2328-
interface SourceFile extends Declaration, ExportContainer {
2320+
interface SourceFile extends Declaration {
23292321
>SourceFile : SourceFile
23302322
>Declaration : Declaration
2331-
>ExportContainer : ExportContainer
23322323

23332324
statements: NodeArray<ModuleElement>;
23342325
>statements : NodeArray<ModuleElement>
@@ -2964,8 +2955,8 @@ declare module "typescript" {
29642955
>EmitResolver : EmitResolver
29652956

29662957
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
2967-
>getGeneratedNameForNode : (node: EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration) => string
2968-
>node : EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration
2958+
>getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string
2959+
>node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration
29692960
>ModuleDeclaration : ModuleDeclaration
29702961
>EnumDeclaration : EnumDeclaration
29712962
>ImportDeclaration : ImportDeclaration
@@ -2976,8 +2967,8 @@ declare module "typescript" {
29762967
>node : Identifier
29772968
>Identifier : Identifier
29782969

2979-
getExportAssignmentName(node: SourceFile): string;
2980-
>getExportAssignmentName : (node: SourceFile) => string
2970+
hasExportDefaultValue(node: SourceFile): boolean;
2971+
>hasExportDefaultValue : (node: SourceFile) => boolean
29812972
>node : SourceFile
29822973
>SourceFile : SourceFile
29832974

@@ -3154,6 +3145,9 @@ declare module "typescript" {
31543145
Optional = 536870912,
31553146
>Optional : SymbolFlags
31563147

3148+
ExportStar = 1073741824,
3149+
>ExportStar : SymbolFlags
3150+
31573151
Enum = 384,
31583152
>Enum : SymbolFlags
31593153

@@ -3318,20 +3312,16 @@ declare module "typescript" {
33183312
referenced?: boolean;
33193313
>referenced : boolean
33203314

3321-
exportAssignmentChecked?: boolean;
3322-
>exportAssignmentChecked : boolean
3323-
3324-
exportAssignmentSymbol?: Symbol;
3325-
>exportAssignmentSymbol : Symbol
3326-
>Symbol : Symbol
3327-
33283315
unionType?: UnionType;
33293316
>unionType : UnionType
33303317
>UnionType : UnionType
33313318

33323319
resolvedExports?: SymbolTable;
33333320
>resolvedExports : SymbolTable
33343321
>SymbolTable : SymbolTable
3322+
3323+
exportsChecked?: boolean;
3324+
>exportsChecked : boolean
33353325
}
33363326
interface TransientSymbol extends Symbol, SymbolLinks {
33373327
>TransientSymbol : TransientSymbol

tests/baselines/reference/APISample_linter.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -743,10 +743,7 @@ declare module "typescript" {
743743
name: Identifier;
744744
members: NodeArray<EnumMember>;
745745
}
746-
interface ExportContainer {
747-
exportStars?: ExportDeclaration[];
748-
}
749-
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
746+
interface ModuleDeclaration extends Declaration, ModuleElement {
750747
name: Identifier | LiteralExpression;
751748
body: ModuleBlock | ModuleDeclaration;
752749
}
@@ -771,7 +768,7 @@ declare module "typescript" {
771768
interface NamespaceImport extends Declaration {
772769
name: Identifier;
773770
}
774-
interface ExportDeclaration extends Statement, ModuleElement {
771+
interface ExportDeclaration extends Declaration, ModuleElement {
775772
exportClause?: NamedExports;
776773
moduleSpecifier?: Expression;
777774
}
@@ -786,7 +783,7 @@ declare module "typescript" {
786783
}
787784
type ImportSpecifier = ImportOrExportSpecifier;
788785
type ExportSpecifier = ImportOrExportSpecifier;
789-
interface ExportAssignment extends Statement, ModuleElement {
786+
interface ExportAssignment extends Declaration, ModuleElement {
790787
isExportEquals?: boolean;
791788
expression: Expression;
792789
}
@@ -796,7 +793,7 @@ declare module "typescript" {
796793
interface CommentRange extends TextRange {
797794
hasTrailingNewLine?: boolean;
798795
}
799-
interface SourceFile extends Declaration, ExportContainer {
796+
interface SourceFile extends Declaration {
800797
statements: NodeArray<ModuleElement>;
801798
endOfFileToken: Node;
802799
fileName: string;
@@ -960,7 +957,7 @@ declare module "typescript" {
960957
interface EmitResolver {
961958
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
962959
getExpressionNameSubstitution(node: Identifier): string;
963-
getExportAssignmentName(node: SourceFile): string;
960+
hasExportDefaultValue(node: SourceFile): boolean;
964961
isReferencedImportDeclaration(node: Node): boolean;
965962
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
966963
getNodeCheckFlags(node: Node): NodeCheckFlags;
@@ -1004,6 +1001,7 @@ declare module "typescript" {
10041001
Prototype = 134217728,
10051002
UnionProperty = 268435456,
10061003
Optional = 536870912,
1004+
ExportStar = 1073741824,
10071005
Enum = 384,
10081006
Variable = 3,
10091007
Value = 107455,
@@ -1057,10 +1055,9 @@ declare module "typescript" {
10571055
declaredType?: Type;
10581056
mapper?: TypeMapper;
10591057
referenced?: boolean;
1060-
exportAssignmentChecked?: boolean;
1061-
exportAssignmentSymbol?: Symbol;
10621058
unionType?: UnionType;
10631059
resolvedExports?: SymbolTable;
1060+
exportsChecked?: boolean;
10641061
}
10651062
interface TransientSymbol extends Symbol, SymbolLinks {
10661063
}

tests/baselines/reference/APISample_linter.types

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,18 +2306,10 @@ declare module "typescript" {
23062306
>NodeArray : NodeArray<T>
23072307
>EnumMember : EnumMember
23082308
}
2309-
interface ExportContainer {
2310-
>ExportContainer : ExportContainer
2311-
2312-
exportStars?: ExportDeclaration[];
2313-
>exportStars : ExportDeclaration[]
2314-
>ExportDeclaration : ExportDeclaration
2315-
}
2316-
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
2309+
interface ModuleDeclaration extends Declaration, ModuleElement {
23172310
>ModuleDeclaration : ModuleDeclaration
23182311
>Declaration : Declaration
23192312
>ModuleElement : ModuleElement
2320-
>ExportContainer : ExportContainer
23212313

23222314
name: Identifier | LiteralExpression;
23232315
>name : Identifier | LiteralExpression
@@ -2395,9 +2387,9 @@ declare module "typescript" {
23952387
>name : Identifier
23962388
>Identifier : Identifier
23972389
}
2398-
interface ExportDeclaration extends Statement, ModuleElement {
2390+
interface ExportDeclaration extends Declaration, ModuleElement {
23992391
>ExportDeclaration : ExportDeclaration
2400-
>Statement : Statement
2392+
>Declaration : Declaration
24012393
>ModuleElement : ModuleElement
24022394

24032395
exportClause?: NamedExports;
@@ -2445,9 +2437,9 @@ declare module "typescript" {
24452437
>ExportSpecifier : ImportOrExportSpecifier
24462438
>ImportOrExportSpecifier : ImportOrExportSpecifier
24472439

2448-
interface ExportAssignment extends Statement, ModuleElement {
2440+
interface ExportAssignment extends Declaration, ModuleElement {
24492441
>ExportAssignment : ExportAssignment
2450-
>Statement : Statement
2442+
>Declaration : Declaration
24512443
>ModuleElement : ModuleElement
24522444

24532445
isExportEquals?: boolean;
@@ -2471,10 +2463,9 @@ declare module "typescript" {
24712463
hasTrailingNewLine?: boolean;
24722464
>hasTrailingNewLine : boolean
24732465
}
2474-
interface SourceFile extends Declaration, ExportContainer {
2466+
interface SourceFile extends Declaration {
24752467
>SourceFile : SourceFile
24762468
>Declaration : Declaration
2477-
>ExportContainer : ExportContainer
24782469

24792470
statements: NodeArray<ModuleElement>;
24802471
>statements : NodeArray<ModuleElement>
@@ -3110,8 +3101,8 @@ declare module "typescript" {
31103101
>EmitResolver : EmitResolver
31113102

31123103
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
3113-
>getGeneratedNameForNode : (node: EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration) => string
3114-
>node : EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration
3104+
>getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string
3105+
>node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration
31153106
>ModuleDeclaration : ModuleDeclaration
31163107
>EnumDeclaration : EnumDeclaration
31173108
>ImportDeclaration : ImportDeclaration
@@ -3122,8 +3113,8 @@ declare module "typescript" {
31223113
>node : Identifier
31233114
>Identifier : Identifier
31243115

3125-
getExportAssignmentName(node: SourceFile): string;
3126-
>getExportAssignmentName : (node: SourceFile) => string
3116+
hasExportDefaultValue(node: SourceFile): boolean;
3117+
>hasExportDefaultValue : (node: SourceFile) => boolean
31273118
>node : SourceFile
31283119
>SourceFile : SourceFile
31293120

@@ -3300,6 +3291,9 @@ declare module "typescript" {
33003291
Optional = 536870912,
33013292
>Optional : SymbolFlags
33023293

3294+
ExportStar = 1073741824,
3295+
>ExportStar : SymbolFlags
3296+
33033297
Enum = 384,
33043298
>Enum : SymbolFlags
33053299

@@ -3464,20 +3458,16 @@ declare module "typescript" {
34643458
referenced?: boolean;
34653459
>referenced : boolean
34663460

3467-
exportAssignmentChecked?: boolean;
3468-
>exportAssignmentChecked : boolean
3469-
3470-
exportAssignmentSymbol?: Symbol;
3471-
>exportAssignmentSymbol : Symbol
3472-
>Symbol : Symbol
3473-
34743461
unionType?: UnionType;
34753462
>unionType : UnionType
34763463
>UnionType : UnionType
34773464

34783465
resolvedExports?: SymbolTable;
34793466
>resolvedExports : SymbolTable
34803467
>SymbolTable : SymbolTable
3468+
3469+
exportsChecked?: boolean;
3470+
>exportsChecked : boolean
34813471
}
34823472
interface TransientSymbol extends Symbol, SymbolLinks {
34833473
>TransientSymbol : TransientSymbol

0 commit comments

Comments
 (0)