Skip to content

Commit

Permalink
Accepting new baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Mar 2, 2015
1 parent 234358e commit 43af871
Show file tree
Hide file tree
Showing 93 changed files with 513 additions and 572 deletions.
17 changes: 7 additions & 10 deletions tests/baselines/reference/APISample_compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,10 +712,7 @@ declare module "typescript" {
name: Identifier;
members: NodeArray<EnumMember>;
}
interface ExportContainer {
exportStars?: ExportDeclaration[];
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
interface ModuleDeclaration extends Declaration, ModuleElement {
name: Identifier | LiteralExpression;
body: ModuleBlock | ModuleDeclaration;
}
Expand All @@ -740,7 +737,7 @@ declare module "typescript" {
interface NamespaceImport extends Declaration {
name: Identifier;
}
interface ExportDeclaration extends Statement, ModuleElement {
interface ExportDeclaration extends Declaration, ModuleElement {
exportClause?: NamedExports;
moduleSpecifier?: Expression;
}
Expand All @@ -755,7 +752,7 @@ declare module "typescript" {
}
type ImportSpecifier = ImportOrExportSpecifier;
type ExportSpecifier = ImportOrExportSpecifier;
interface ExportAssignment extends Statement, ModuleElement {
interface ExportAssignment extends Declaration, ModuleElement {
isExportEquals?: boolean;
expression: Expression;
}
Expand All @@ -765,7 +762,7 @@ declare module "typescript" {
interface CommentRange extends TextRange {
hasTrailingNewLine?: boolean;
}
interface SourceFile extends Declaration, ExportContainer {
interface SourceFile extends Declaration {
statements: NodeArray<ModuleElement>;
endOfFileToken: Node;
fileName: string;
Expand Down Expand Up @@ -929,7 +926,7 @@ declare module "typescript" {
interface EmitResolver {
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
getExpressionNameSubstitution(node: Identifier): string;
getExportAssignmentName(node: SourceFile): string;
hasExportDefaultValue(node: SourceFile): boolean;
isReferencedImportDeclaration(node: Node): boolean;
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
getNodeCheckFlags(node: Node): NodeCheckFlags;
Expand Down Expand Up @@ -973,6 +970,7 @@ declare module "typescript" {
Prototype = 134217728,
UnionProperty = 268435456,
Optional = 536870912,
ExportStar = 1073741824,
Enum = 384,
Variable = 3,
Value = 107455,
Expand Down Expand Up @@ -1026,10 +1024,9 @@ declare module "typescript" {
declaredType?: Type;
mapper?: TypeMapper;
referenced?: boolean;
exportAssignmentChecked?: boolean;
exportAssignmentSymbol?: Symbol;
unionType?: UnionType;
resolvedExports?: SymbolTable;
exportsChecked?: boolean;
}
interface TransientSymbol extends Symbol, SymbolLinks {
}
Expand Down
42 changes: 16 additions & 26 deletions tests/baselines/reference/APISample_compile.types
Original file line number Diff line number Diff line change
Expand Up @@ -2160,18 +2160,10 @@ declare module "typescript" {
>NodeArray : NodeArray<T>
>EnumMember : EnumMember
}
interface ExportContainer {
>ExportContainer : ExportContainer

exportStars?: ExportDeclaration[];
>exportStars : ExportDeclaration[]
>ExportDeclaration : ExportDeclaration
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
interface ModuleDeclaration extends Declaration, ModuleElement {
>ModuleDeclaration : ModuleDeclaration
>Declaration : Declaration
>ModuleElement : ModuleElement
>ExportContainer : ExportContainer

name: Identifier | LiteralExpression;
>name : Identifier | LiteralExpression
Expand Down Expand Up @@ -2249,9 +2241,9 @@ declare module "typescript" {
>name : Identifier
>Identifier : Identifier
}
interface ExportDeclaration extends Statement, ModuleElement {
interface ExportDeclaration extends Declaration, ModuleElement {
>ExportDeclaration : ExportDeclaration
>Statement : Statement
>Declaration : Declaration
>ModuleElement : ModuleElement

exportClause?: NamedExports;
Expand Down Expand Up @@ -2299,9 +2291,9 @@ declare module "typescript" {
>ExportSpecifier : ImportOrExportSpecifier
>ImportOrExportSpecifier : ImportOrExportSpecifier

interface ExportAssignment extends Statement, ModuleElement {
interface ExportAssignment extends Declaration, ModuleElement {
>ExportAssignment : ExportAssignment
>Statement : Statement
>Declaration : Declaration
>ModuleElement : ModuleElement

isExportEquals?: boolean;
Expand All @@ -2325,10 +2317,9 @@ declare module "typescript" {
hasTrailingNewLine?: boolean;
>hasTrailingNewLine : boolean
}
interface SourceFile extends Declaration, ExportContainer {
interface SourceFile extends Declaration {
>SourceFile : SourceFile
>Declaration : Declaration
>ExportContainer : ExportContainer

statements: NodeArray<ModuleElement>;
>statements : NodeArray<ModuleElement>
Expand Down Expand Up @@ -2964,8 +2955,8 @@ declare module "typescript" {
>EmitResolver : EmitResolver

getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
>getGeneratedNameForNode : (node: EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration) => string
>node : EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration
>getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string
>node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration
>ModuleDeclaration : ModuleDeclaration
>EnumDeclaration : EnumDeclaration
>ImportDeclaration : ImportDeclaration
Expand All @@ -2976,8 +2967,8 @@ declare module "typescript" {
>node : Identifier
>Identifier : Identifier

getExportAssignmentName(node: SourceFile): string;
>getExportAssignmentName : (node: SourceFile) => string
hasExportDefaultValue(node: SourceFile): boolean;
>hasExportDefaultValue : (node: SourceFile) => boolean
>node : SourceFile
>SourceFile : SourceFile

Expand Down Expand Up @@ -3154,6 +3145,9 @@ declare module "typescript" {
Optional = 536870912,
>Optional : SymbolFlags

ExportStar = 1073741824,
>ExportStar : SymbolFlags

Enum = 384,
>Enum : SymbolFlags

Expand Down Expand Up @@ -3318,20 +3312,16 @@ declare module "typescript" {
referenced?: boolean;
>referenced : boolean

exportAssignmentChecked?: boolean;
>exportAssignmentChecked : boolean

exportAssignmentSymbol?: Symbol;
>exportAssignmentSymbol : Symbol
>Symbol : Symbol

unionType?: UnionType;
>unionType : UnionType
>UnionType : UnionType

resolvedExports?: SymbolTable;
>resolvedExports : SymbolTable
>SymbolTable : SymbolTable

exportsChecked?: boolean;
>exportsChecked : boolean
}
interface TransientSymbol extends Symbol, SymbolLinks {
>TransientSymbol : TransientSymbol
Expand Down
17 changes: 7 additions & 10 deletions tests/baselines/reference/APISample_linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,10 +743,7 @@ declare module "typescript" {
name: Identifier;
members: NodeArray<EnumMember>;
}
interface ExportContainer {
exportStars?: ExportDeclaration[];
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
interface ModuleDeclaration extends Declaration, ModuleElement {
name: Identifier | LiteralExpression;
body: ModuleBlock | ModuleDeclaration;
}
Expand All @@ -771,7 +768,7 @@ declare module "typescript" {
interface NamespaceImport extends Declaration {
name: Identifier;
}
interface ExportDeclaration extends Statement, ModuleElement {
interface ExportDeclaration extends Declaration, ModuleElement {
exportClause?: NamedExports;
moduleSpecifier?: Expression;
}
Expand All @@ -786,7 +783,7 @@ declare module "typescript" {
}
type ImportSpecifier = ImportOrExportSpecifier;
type ExportSpecifier = ImportOrExportSpecifier;
interface ExportAssignment extends Statement, ModuleElement {
interface ExportAssignment extends Declaration, ModuleElement {
isExportEquals?: boolean;
expression: Expression;
}
Expand All @@ -796,7 +793,7 @@ declare module "typescript" {
interface CommentRange extends TextRange {
hasTrailingNewLine?: boolean;
}
interface SourceFile extends Declaration, ExportContainer {
interface SourceFile extends Declaration {
statements: NodeArray<ModuleElement>;
endOfFileToken: Node;
fileName: string;
Expand Down Expand Up @@ -960,7 +957,7 @@ declare module "typescript" {
interface EmitResolver {
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
getExpressionNameSubstitution(node: Identifier): string;
getExportAssignmentName(node: SourceFile): string;
hasExportDefaultValue(node: SourceFile): boolean;
isReferencedImportDeclaration(node: Node): boolean;
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
getNodeCheckFlags(node: Node): NodeCheckFlags;
Expand Down Expand Up @@ -1004,6 +1001,7 @@ declare module "typescript" {
Prototype = 134217728,
UnionProperty = 268435456,
Optional = 536870912,
ExportStar = 1073741824,
Enum = 384,
Variable = 3,
Value = 107455,
Expand Down Expand Up @@ -1057,10 +1055,9 @@ declare module "typescript" {
declaredType?: Type;
mapper?: TypeMapper;
referenced?: boolean;
exportAssignmentChecked?: boolean;
exportAssignmentSymbol?: Symbol;
unionType?: UnionType;
resolvedExports?: SymbolTable;
exportsChecked?: boolean;
}
interface TransientSymbol extends Symbol, SymbolLinks {
}
Expand Down
42 changes: 16 additions & 26 deletions tests/baselines/reference/APISample_linter.types
Original file line number Diff line number Diff line change
Expand Up @@ -2306,18 +2306,10 @@ declare module "typescript" {
>NodeArray : NodeArray<T>
>EnumMember : EnumMember
}
interface ExportContainer {
>ExportContainer : ExportContainer

exportStars?: ExportDeclaration[];
>exportStars : ExportDeclaration[]
>ExportDeclaration : ExportDeclaration
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
interface ModuleDeclaration extends Declaration, ModuleElement {
>ModuleDeclaration : ModuleDeclaration
>Declaration : Declaration
>ModuleElement : ModuleElement
>ExportContainer : ExportContainer

name: Identifier | LiteralExpression;
>name : Identifier | LiteralExpression
Expand Down Expand Up @@ -2395,9 +2387,9 @@ declare module "typescript" {
>name : Identifier
>Identifier : Identifier
}
interface ExportDeclaration extends Statement, ModuleElement {
interface ExportDeclaration extends Declaration, ModuleElement {
>ExportDeclaration : ExportDeclaration
>Statement : Statement
>Declaration : Declaration
>ModuleElement : ModuleElement

exportClause?: NamedExports;
Expand Down Expand Up @@ -2445,9 +2437,9 @@ declare module "typescript" {
>ExportSpecifier : ImportOrExportSpecifier
>ImportOrExportSpecifier : ImportOrExportSpecifier

interface ExportAssignment extends Statement, ModuleElement {
interface ExportAssignment extends Declaration, ModuleElement {
>ExportAssignment : ExportAssignment
>Statement : Statement
>Declaration : Declaration
>ModuleElement : ModuleElement

isExportEquals?: boolean;
Expand All @@ -2471,10 +2463,9 @@ declare module "typescript" {
hasTrailingNewLine?: boolean;
>hasTrailingNewLine : boolean
}
interface SourceFile extends Declaration, ExportContainer {
interface SourceFile extends Declaration {
>SourceFile : SourceFile
>Declaration : Declaration
>ExportContainer : ExportContainer

statements: NodeArray<ModuleElement>;
>statements : NodeArray<ModuleElement>
Expand Down Expand Up @@ -3110,8 +3101,8 @@ declare module "typescript" {
>EmitResolver : EmitResolver

getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
>getGeneratedNameForNode : (node: EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration) => string
>node : EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration
>getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string
>node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration
>ModuleDeclaration : ModuleDeclaration
>EnumDeclaration : EnumDeclaration
>ImportDeclaration : ImportDeclaration
Expand All @@ -3122,8 +3113,8 @@ declare module "typescript" {
>node : Identifier
>Identifier : Identifier

getExportAssignmentName(node: SourceFile): string;
>getExportAssignmentName : (node: SourceFile) => string
hasExportDefaultValue(node: SourceFile): boolean;
>hasExportDefaultValue : (node: SourceFile) => boolean
>node : SourceFile
>SourceFile : SourceFile

Expand Down Expand Up @@ -3300,6 +3291,9 @@ declare module "typescript" {
Optional = 536870912,
>Optional : SymbolFlags

ExportStar = 1073741824,
>ExportStar : SymbolFlags

Enum = 384,
>Enum : SymbolFlags

Expand Down Expand Up @@ -3464,20 +3458,16 @@ declare module "typescript" {
referenced?: boolean;
>referenced : boolean

exportAssignmentChecked?: boolean;
>exportAssignmentChecked : boolean

exportAssignmentSymbol?: Symbol;
>exportAssignmentSymbol : Symbol
>Symbol : Symbol

unionType?: UnionType;
>unionType : UnionType
>UnionType : UnionType

resolvedExports?: SymbolTable;
>resolvedExports : SymbolTable
>SymbolTable : SymbolTable

exportsChecked?: boolean;
>exportsChecked : boolean
}
interface TransientSymbol extends Symbol, SymbolLinks {
>TransientSymbol : TransientSymbol
Expand Down
Loading

0 comments on commit 43af871

Please sign in to comment.