Accepting new baselines

This commit is contained in:
Anders Hejlsberg 2015-03-02 12:21:53 -08:00
parent 234358e6c6
commit 43af8716d0
93 changed files with 513 additions and 572 deletions

View file

@ -712,10 +712,7 @@ declare module "typescript" {
name: Identifier; name: Identifier;
members: NodeArray<EnumMember>; members: NodeArray<EnumMember>;
} }
interface ExportContainer { interface ModuleDeclaration extends Declaration, ModuleElement {
exportStars?: ExportDeclaration[];
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
name: Identifier | LiteralExpression; name: Identifier | LiteralExpression;
body: ModuleBlock | ModuleDeclaration; body: ModuleBlock | ModuleDeclaration;
} }
@ -740,7 +737,7 @@ declare module "typescript" {
interface NamespaceImport extends Declaration { interface NamespaceImport extends Declaration {
name: Identifier; name: Identifier;
} }
interface ExportDeclaration extends Statement, ModuleElement { interface ExportDeclaration extends Declaration, ModuleElement {
exportClause?: NamedExports; exportClause?: NamedExports;
moduleSpecifier?: Expression; moduleSpecifier?: Expression;
} }
@ -755,7 +752,7 @@ declare module "typescript" {
} }
type ImportSpecifier = ImportOrExportSpecifier; type ImportSpecifier = ImportOrExportSpecifier;
type ExportSpecifier = ImportOrExportSpecifier; type ExportSpecifier = ImportOrExportSpecifier;
interface ExportAssignment extends Statement, ModuleElement { interface ExportAssignment extends Declaration, ModuleElement {
isExportEquals?: boolean; isExportEquals?: boolean;
expression: Expression; expression: Expression;
} }
@ -765,7 +762,7 @@ declare module "typescript" {
interface CommentRange extends TextRange { interface CommentRange extends TextRange {
hasTrailingNewLine?: boolean; hasTrailingNewLine?: boolean;
} }
interface SourceFile extends Declaration, ExportContainer { interface SourceFile extends Declaration {
statements: NodeArray<ModuleElement>; statements: NodeArray<ModuleElement>;
endOfFileToken: Node; endOfFileToken: Node;
fileName: string; fileName: string;
@ -929,7 +926,7 @@ declare module "typescript" {
interface EmitResolver { interface EmitResolver {
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
getExpressionNameSubstitution(node: Identifier): string; getExpressionNameSubstitution(node: Identifier): string;
getExportAssignmentName(node: SourceFile): string; hasExportDefaultValue(node: SourceFile): boolean;
isReferencedImportDeclaration(node: Node): boolean; isReferencedImportDeclaration(node: Node): boolean;
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean; isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
getNodeCheckFlags(node: Node): NodeCheckFlags; getNodeCheckFlags(node: Node): NodeCheckFlags;
@ -973,6 +970,7 @@ declare module "typescript" {
Prototype = 134217728, Prototype = 134217728,
UnionProperty = 268435456, UnionProperty = 268435456,
Optional = 536870912, Optional = 536870912,
ExportStar = 1073741824,
Enum = 384, Enum = 384,
Variable = 3, Variable = 3,
Value = 107455, Value = 107455,
@ -1026,10 +1024,9 @@ declare module "typescript" {
declaredType?: Type; declaredType?: Type;
mapper?: TypeMapper; mapper?: TypeMapper;
referenced?: boolean; referenced?: boolean;
exportAssignmentChecked?: boolean;
exportAssignmentSymbol?: Symbol;
unionType?: UnionType; unionType?: UnionType;
resolvedExports?: SymbolTable; resolvedExports?: SymbolTable;
exportsChecked?: boolean;
} }
interface TransientSymbol extends Symbol, SymbolLinks { interface TransientSymbol extends Symbol, SymbolLinks {
} }

View file

@ -2160,18 +2160,10 @@ declare module "typescript" {
>NodeArray : NodeArray<T> >NodeArray : NodeArray<T>
>EnumMember : EnumMember >EnumMember : EnumMember
} }
interface ExportContainer { interface ModuleDeclaration extends Declaration, ModuleElement {
>ExportContainer : ExportContainer
exportStars?: ExportDeclaration[];
>exportStars : ExportDeclaration[]
>ExportDeclaration : ExportDeclaration
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
>ModuleDeclaration : ModuleDeclaration >ModuleDeclaration : ModuleDeclaration
>Declaration : Declaration >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
>ExportContainer : ExportContainer
name: Identifier | LiteralExpression; name: Identifier | LiteralExpression;
>name : Identifier | LiteralExpression >name : Identifier | LiteralExpression
@ -2249,9 +2241,9 @@ declare module "typescript" {
>name : Identifier >name : Identifier
>Identifier : Identifier >Identifier : Identifier
} }
interface ExportDeclaration extends Statement, ModuleElement { interface ExportDeclaration extends Declaration, ModuleElement {
>ExportDeclaration : ExportDeclaration >ExportDeclaration : ExportDeclaration
>Statement : Statement >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
exportClause?: NamedExports; exportClause?: NamedExports;
@ -2299,9 +2291,9 @@ declare module "typescript" {
>ExportSpecifier : ImportOrExportSpecifier >ExportSpecifier : ImportOrExportSpecifier
>ImportOrExportSpecifier : ImportOrExportSpecifier >ImportOrExportSpecifier : ImportOrExportSpecifier
interface ExportAssignment extends Statement, ModuleElement { interface ExportAssignment extends Declaration, ModuleElement {
>ExportAssignment : ExportAssignment >ExportAssignment : ExportAssignment
>Statement : Statement >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
isExportEquals?: boolean; isExportEquals?: boolean;
@ -2325,10 +2317,9 @@ declare module "typescript" {
hasTrailingNewLine?: boolean; hasTrailingNewLine?: boolean;
>hasTrailingNewLine : boolean >hasTrailingNewLine : boolean
} }
interface SourceFile extends Declaration, ExportContainer { interface SourceFile extends Declaration {
>SourceFile : SourceFile >SourceFile : SourceFile
>Declaration : Declaration >Declaration : Declaration
>ExportContainer : ExportContainer
statements: NodeArray<ModuleElement>; statements: NodeArray<ModuleElement>;
>statements : NodeArray<ModuleElement> >statements : NodeArray<ModuleElement>
@ -2964,8 +2955,8 @@ declare module "typescript" {
>EmitResolver : EmitResolver >EmitResolver : EmitResolver
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
>getGeneratedNameForNode : (node: EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration) => string >getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string
>node : EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration >node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration
>ModuleDeclaration : ModuleDeclaration >ModuleDeclaration : ModuleDeclaration
>EnumDeclaration : EnumDeclaration >EnumDeclaration : EnumDeclaration
>ImportDeclaration : ImportDeclaration >ImportDeclaration : ImportDeclaration
@ -2976,8 +2967,8 @@ declare module "typescript" {
>node : Identifier >node : Identifier
>Identifier : Identifier >Identifier : Identifier
getExportAssignmentName(node: SourceFile): string; hasExportDefaultValue(node: SourceFile): boolean;
>getExportAssignmentName : (node: SourceFile) => string >hasExportDefaultValue : (node: SourceFile) => boolean
>node : SourceFile >node : SourceFile
>SourceFile : SourceFile >SourceFile : SourceFile
@ -3154,6 +3145,9 @@ declare module "typescript" {
Optional = 536870912, Optional = 536870912,
>Optional : SymbolFlags >Optional : SymbolFlags
ExportStar = 1073741824,
>ExportStar : SymbolFlags
Enum = 384, Enum = 384,
>Enum : SymbolFlags >Enum : SymbolFlags
@ -3318,13 +3312,6 @@ declare module "typescript" {
referenced?: boolean; referenced?: boolean;
>referenced : boolean >referenced : boolean
exportAssignmentChecked?: boolean;
>exportAssignmentChecked : boolean
exportAssignmentSymbol?: Symbol;
>exportAssignmentSymbol : Symbol
>Symbol : Symbol
unionType?: UnionType; unionType?: UnionType;
>unionType : UnionType >unionType : UnionType
>UnionType : UnionType >UnionType : UnionType
@ -3332,6 +3319,9 @@ declare module "typescript" {
resolvedExports?: SymbolTable; resolvedExports?: SymbolTable;
>resolvedExports : SymbolTable >resolvedExports : SymbolTable
>SymbolTable : SymbolTable >SymbolTable : SymbolTable
exportsChecked?: boolean;
>exportsChecked : boolean
} }
interface TransientSymbol extends Symbol, SymbolLinks { interface TransientSymbol extends Symbol, SymbolLinks {
>TransientSymbol : TransientSymbol >TransientSymbol : TransientSymbol

View file

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

View file

@ -2306,18 +2306,10 @@ declare module "typescript" {
>NodeArray : NodeArray<T> >NodeArray : NodeArray<T>
>EnumMember : EnumMember >EnumMember : EnumMember
} }
interface ExportContainer { interface ModuleDeclaration extends Declaration, ModuleElement {
>ExportContainer : ExportContainer
exportStars?: ExportDeclaration[];
>exportStars : ExportDeclaration[]
>ExportDeclaration : ExportDeclaration
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
>ModuleDeclaration : ModuleDeclaration >ModuleDeclaration : ModuleDeclaration
>Declaration : Declaration >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
>ExportContainer : ExportContainer
name: Identifier | LiteralExpression; name: Identifier | LiteralExpression;
>name : Identifier | LiteralExpression >name : Identifier | LiteralExpression
@ -2395,9 +2387,9 @@ declare module "typescript" {
>name : Identifier >name : Identifier
>Identifier : Identifier >Identifier : Identifier
} }
interface ExportDeclaration extends Statement, ModuleElement { interface ExportDeclaration extends Declaration, ModuleElement {
>ExportDeclaration : ExportDeclaration >ExportDeclaration : ExportDeclaration
>Statement : Statement >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
exportClause?: NamedExports; exportClause?: NamedExports;
@ -2445,9 +2437,9 @@ declare module "typescript" {
>ExportSpecifier : ImportOrExportSpecifier >ExportSpecifier : ImportOrExportSpecifier
>ImportOrExportSpecifier : ImportOrExportSpecifier >ImportOrExportSpecifier : ImportOrExportSpecifier
interface ExportAssignment extends Statement, ModuleElement { interface ExportAssignment extends Declaration, ModuleElement {
>ExportAssignment : ExportAssignment >ExportAssignment : ExportAssignment
>Statement : Statement >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
isExportEquals?: boolean; isExportEquals?: boolean;
@ -2471,10 +2463,9 @@ declare module "typescript" {
hasTrailingNewLine?: boolean; hasTrailingNewLine?: boolean;
>hasTrailingNewLine : boolean >hasTrailingNewLine : boolean
} }
interface SourceFile extends Declaration, ExportContainer { interface SourceFile extends Declaration {
>SourceFile : SourceFile >SourceFile : SourceFile
>Declaration : Declaration >Declaration : Declaration
>ExportContainer : ExportContainer
statements: NodeArray<ModuleElement>; statements: NodeArray<ModuleElement>;
>statements : NodeArray<ModuleElement> >statements : NodeArray<ModuleElement>
@ -3110,8 +3101,8 @@ declare module "typescript" {
>EmitResolver : EmitResolver >EmitResolver : EmitResolver
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
>getGeneratedNameForNode : (node: EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration) => string >getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string
>node : EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration >node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration
>ModuleDeclaration : ModuleDeclaration >ModuleDeclaration : ModuleDeclaration
>EnumDeclaration : EnumDeclaration >EnumDeclaration : EnumDeclaration
>ImportDeclaration : ImportDeclaration >ImportDeclaration : ImportDeclaration
@ -3122,8 +3113,8 @@ declare module "typescript" {
>node : Identifier >node : Identifier
>Identifier : Identifier >Identifier : Identifier
getExportAssignmentName(node: SourceFile): string; hasExportDefaultValue(node: SourceFile): boolean;
>getExportAssignmentName : (node: SourceFile) => string >hasExportDefaultValue : (node: SourceFile) => boolean
>node : SourceFile >node : SourceFile
>SourceFile : SourceFile >SourceFile : SourceFile
@ -3300,6 +3291,9 @@ declare module "typescript" {
Optional = 536870912, Optional = 536870912,
>Optional : SymbolFlags >Optional : SymbolFlags
ExportStar = 1073741824,
>ExportStar : SymbolFlags
Enum = 384, Enum = 384,
>Enum : SymbolFlags >Enum : SymbolFlags
@ -3464,13 +3458,6 @@ declare module "typescript" {
referenced?: boolean; referenced?: boolean;
>referenced : boolean >referenced : boolean
exportAssignmentChecked?: boolean;
>exportAssignmentChecked : boolean
exportAssignmentSymbol?: Symbol;
>exportAssignmentSymbol : Symbol
>Symbol : Symbol
unionType?: UnionType; unionType?: UnionType;
>unionType : UnionType >unionType : UnionType
>UnionType : UnionType >UnionType : UnionType
@ -3478,6 +3465,9 @@ declare module "typescript" {
resolvedExports?: SymbolTable; resolvedExports?: SymbolTable;
>resolvedExports : SymbolTable >resolvedExports : SymbolTable
>SymbolTable : SymbolTable >SymbolTable : SymbolTable
exportsChecked?: boolean;
>exportsChecked : boolean
} }
interface TransientSymbol extends Symbol, SymbolLinks { interface TransientSymbol extends Symbol, SymbolLinks {
>TransientSymbol : TransientSymbol >TransientSymbol : TransientSymbol

View file

@ -744,10 +744,7 @@ declare module "typescript" {
name: Identifier; name: Identifier;
members: NodeArray<EnumMember>; members: NodeArray<EnumMember>;
} }
interface ExportContainer { interface ModuleDeclaration extends Declaration, ModuleElement {
exportStars?: ExportDeclaration[];
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
name: Identifier | LiteralExpression; name: Identifier | LiteralExpression;
body: ModuleBlock | ModuleDeclaration; body: ModuleBlock | ModuleDeclaration;
} }
@ -772,7 +769,7 @@ declare module "typescript" {
interface NamespaceImport extends Declaration { interface NamespaceImport extends Declaration {
name: Identifier; name: Identifier;
} }
interface ExportDeclaration extends Statement, ModuleElement { interface ExportDeclaration extends Declaration, ModuleElement {
exportClause?: NamedExports; exportClause?: NamedExports;
moduleSpecifier?: Expression; moduleSpecifier?: Expression;
} }
@ -787,7 +784,7 @@ declare module "typescript" {
} }
type ImportSpecifier = ImportOrExportSpecifier; type ImportSpecifier = ImportOrExportSpecifier;
type ExportSpecifier = ImportOrExportSpecifier; type ExportSpecifier = ImportOrExportSpecifier;
interface ExportAssignment extends Statement, ModuleElement { interface ExportAssignment extends Declaration, ModuleElement {
isExportEquals?: boolean; isExportEquals?: boolean;
expression: Expression; expression: Expression;
} }
@ -797,7 +794,7 @@ declare module "typescript" {
interface CommentRange extends TextRange { interface CommentRange extends TextRange {
hasTrailingNewLine?: boolean; hasTrailingNewLine?: boolean;
} }
interface SourceFile extends Declaration, ExportContainer { interface SourceFile extends Declaration {
statements: NodeArray<ModuleElement>; statements: NodeArray<ModuleElement>;
endOfFileToken: Node; endOfFileToken: Node;
fileName: string; fileName: string;
@ -961,7 +958,7 @@ declare module "typescript" {
interface EmitResolver { interface EmitResolver {
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
getExpressionNameSubstitution(node: Identifier): string; getExpressionNameSubstitution(node: Identifier): string;
getExportAssignmentName(node: SourceFile): string; hasExportDefaultValue(node: SourceFile): boolean;
isReferencedImportDeclaration(node: Node): boolean; isReferencedImportDeclaration(node: Node): boolean;
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean; isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
getNodeCheckFlags(node: Node): NodeCheckFlags; getNodeCheckFlags(node: Node): NodeCheckFlags;
@ -1005,6 +1002,7 @@ declare module "typescript" {
Prototype = 134217728, Prototype = 134217728,
UnionProperty = 268435456, UnionProperty = 268435456,
Optional = 536870912, Optional = 536870912,
ExportStar = 1073741824,
Enum = 384, Enum = 384,
Variable = 3, Variable = 3,
Value = 107455, Value = 107455,
@ -1058,10 +1056,9 @@ declare module "typescript" {
declaredType?: Type; declaredType?: Type;
mapper?: TypeMapper; mapper?: TypeMapper;
referenced?: boolean; referenced?: boolean;
exportAssignmentChecked?: boolean;
exportAssignmentSymbol?: Symbol;
unionType?: UnionType; unionType?: UnionType;
resolvedExports?: SymbolTable; resolvedExports?: SymbolTable;
exportsChecked?: boolean;
} }
interface TransientSymbol extends Symbol, SymbolLinks { interface TransientSymbol extends Symbol, SymbolLinks {
} }

View file

@ -2256,18 +2256,10 @@ declare module "typescript" {
>NodeArray : NodeArray<T> >NodeArray : NodeArray<T>
>EnumMember : EnumMember >EnumMember : EnumMember
} }
interface ExportContainer { interface ModuleDeclaration extends Declaration, ModuleElement {
>ExportContainer : ExportContainer
exportStars?: ExportDeclaration[];
>exportStars : ExportDeclaration[]
>ExportDeclaration : ExportDeclaration
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
>ModuleDeclaration : ModuleDeclaration >ModuleDeclaration : ModuleDeclaration
>Declaration : Declaration >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
>ExportContainer : ExportContainer
name: Identifier | LiteralExpression; name: Identifier | LiteralExpression;
>name : Identifier | LiteralExpression >name : Identifier | LiteralExpression
@ -2345,9 +2337,9 @@ declare module "typescript" {
>name : Identifier >name : Identifier
>Identifier : Identifier >Identifier : Identifier
} }
interface ExportDeclaration extends Statement, ModuleElement { interface ExportDeclaration extends Declaration, ModuleElement {
>ExportDeclaration : ExportDeclaration >ExportDeclaration : ExportDeclaration
>Statement : Statement >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
exportClause?: NamedExports; exportClause?: NamedExports;
@ -2395,9 +2387,9 @@ declare module "typescript" {
>ExportSpecifier : ImportOrExportSpecifier >ExportSpecifier : ImportOrExportSpecifier
>ImportOrExportSpecifier : ImportOrExportSpecifier >ImportOrExportSpecifier : ImportOrExportSpecifier
interface ExportAssignment extends Statement, ModuleElement { interface ExportAssignment extends Declaration, ModuleElement {
>ExportAssignment : ExportAssignment >ExportAssignment : ExportAssignment
>Statement : Statement >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
isExportEquals?: boolean; isExportEquals?: boolean;
@ -2421,10 +2413,9 @@ declare module "typescript" {
hasTrailingNewLine?: boolean; hasTrailingNewLine?: boolean;
>hasTrailingNewLine : boolean >hasTrailingNewLine : boolean
} }
interface SourceFile extends Declaration, ExportContainer { interface SourceFile extends Declaration {
>SourceFile : SourceFile >SourceFile : SourceFile
>Declaration : Declaration >Declaration : Declaration
>ExportContainer : ExportContainer
statements: NodeArray<ModuleElement>; statements: NodeArray<ModuleElement>;
>statements : NodeArray<ModuleElement> >statements : NodeArray<ModuleElement>
@ -3060,8 +3051,8 @@ declare module "typescript" {
>EmitResolver : EmitResolver >EmitResolver : EmitResolver
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
>getGeneratedNameForNode : (node: EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration) => string >getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string
>node : EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration >node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration
>ModuleDeclaration : ModuleDeclaration >ModuleDeclaration : ModuleDeclaration
>EnumDeclaration : EnumDeclaration >EnumDeclaration : EnumDeclaration
>ImportDeclaration : ImportDeclaration >ImportDeclaration : ImportDeclaration
@ -3072,8 +3063,8 @@ declare module "typescript" {
>node : Identifier >node : Identifier
>Identifier : Identifier >Identifier : Identifier
getExportAssignmentName(node: SourceFile): string; hasExportDefaultValue(node: SourceFile): boolean;
>getExportAssignmentName : (node: SourceFile) => string >hasExportDefaultValue : (node: SourceFile) => boolean
>node : SourceFile >node : SourceFile
>SourceFile : SourceFile >SourceFile : SourceFile
@ -3250,6 +3241,9 @@ declare module "typescript" {
Optional = 536870912, Optional = 536870912,
>Optional : SymbolFlags >Optional : SymbolFlags
ExportStar = 1073741824,
>ExportStar : SymbolFlags
Enum = 384, Enum = 384,
>Enum : SymbolFlags >Enum : SymbolFlags
@ -3414,13 +3408,6 @@ declare module "typescript" {
referenced?: boolean; referenced?: boolean;
>referenced : boolean >referenced : boolean
exportAssignmentChecked?: boolean;
>exportAssignmentChecked : boolean
exportAssignmentSymbol?: Symbol;
>exportAssignmentSymbol : Symbol
>Symbol : Symbol
unionType?: UnionType; unionType?: UnionType;
>unionType : UnionType >unionType : UnionType
>UnionType : UnionType >UnionType : UnionType
@ -3428,6 +3415,9 @@ declare module "typescript" {
resolvedExports?: SymbolTable; resolvedExports?: SymbolTable;
>resolvedExports : SymbolTable >resolvedExports : SymbolTable
>SymbolTable : SymbolTable >SymbolTable : SymbolTable
exportsChecked?: boolean;
>exportsChecked : boolean
} }
interface TransientSymbol extends Symbol, SymbolLinks { interface TransientSymbol extends Symbol, SymbolLinks {
>TransientSymbol : TransientSymbol >TransientSymbol : TransientSymbol

View file

@ -781,10 +781,7 @@ declare module "typescript" {
name: Identifier; name: Identifier;
members: NodeArray<EnumMember>; members: NodeArray<EnumMember>;
} }
interface ExportContainer { interface ModuleDeclaration extends Declaration, ModuleElement {
exportStars?: ExportDeclaration[];
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
name: Identifier | LiteralExpression; name: Identifier | LiteralExpression;
body: ModuleBlock | ModuleDeclaration; body: ModuleBlock | ModuleDeclaration;
} }
@ -809,7 +806,7 @@ declare module "typescript" {
interface NamespaceImport extends Declaration { interface NamespaceImport extends Declaration {
name: Identifier; name: Identifier;
} }
interface ExportDeclaration extends Statement, ModuleElement { interface ExportDeclaration extends Declaration, ModuleElement {
exportClause?: NamedExports; exportClause?: NamedExports;
moduleSpecifier?: Expression; moduleSpecifier?: Expression;
} }
@ -824,7 +821,7 @@ declare module "typescript" {
} }
type ImportSpecifier = ImportOrExportSpecifier; type ImportSpecifier = ImportOrExportSpecifier;
type ExportSpecifier = ImportOrExportSpecifier; type ExportSpecifier = ImportOrExportSpecifier;
interface ExportAssignment extends Statement, ModuleElement { interface ExportAssignment extends Declaration, ModuleElement {
isExportEquals?: boolean; isExportEquals?: boolean;
expression: Expression; expression: Expression;
} }
@ -834,7 +831,7 @@ declare module "typescript" {
interface CommentRange extends TextRange { interface CommentRange extends TextRange {
hasTrailingNewLine?: boolean; hasTrailingNewLine?: boolean;
} }
interface SourceFile extends Declaration, ExportContainer { interface SourceFile extends Declaration {
statements: NodeArray<ModuleElement>; statements: NodeArray<ModuleElement>;
endOfFileToken: Node; endOfFileToken: Node;
fileName: string; fileName: string;
@ -998,7 +995,7 @@ declare module "typescript" {
interface EmitResolver { interface EmitResolver {
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
getExpressionNameSubstitution(node: Identifier): string; getExpressionNameSubstitution(node: Identifier): string;
getExportAssignmentName(node: SourceFile): string; hasExportDefaultValue(node: SourceFile): boolean;
isReferencedImportDeclaration(node: Node): boolean; isReferencedImportDeclaration(node: Node): boolean;
isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean; isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean;
getNodeCheckFlags(node: Node): NodeCheckFlags; getNodeCheckFlags(node: Node): NodeCheckFlags;
@ -1042,6 +1039,7 @@ declare module "typescript" {
Prototype = 134217728, Prototype = 134217728,
UnionProperty = 268435456, UnionProperty = 268435456,
Optional = 536870912, Optional = 536870912,
ExportStar = 1073741824,
Enum = 384, Enum = 384,
Variable = 3, Variable = 3,
Value = 107455, Value = 107455,
@ -1095,10 +1093,9 @@ declare module "typescript" {
declaredType?: Type; declaredType?: Type;
mapper?: TypeMapper; mapper?: TypeMapper;
referenced?: boolean; referenced?: boolean;
exportAssignmentChecked?: boolean;
exportAssignmentSymbol?: Symbol;
unionType?: UnionType; unionType?: UnionType;
resolvedExports?: SymbolTable; resolvedExports?: SymbolTable;
exportsChecked?: boolean;
} }
interface TransientSymbol extends Symbol, SymbolLinks { interface TransientSymbol extends Symbol, SymbolLinks {
} }

View file

@ -2429,18 +2429,10 @@ declare module "typescript" {
>NodeArray : NodeArray<T> >NodeArray : NodeArray<T>
>EnumMember : EnumMember >EnumMember : EnumMember
} }
interface ExportContainer { interface ModuleDeclaration extends Declaration, ModuleElement {
>ExportContainer : ExportContainer
exportStars?: ExportDeclaration[];
>exportStars : ExportDeclaration[]
>ExportDeclaration : ExportDeclaration
}
interface ModuleDeclaration extends Declaration, ModuleElement, ExportContainer {
>ModuleDeclaration : ModuleDeclaration >ModuleDeclaration : ModuleDeclaration
>Declaration : Declaration >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
>ExportContainer : ExportContainer
name: Identifier | LiteralExpression; name: Identifier | LiteralExpression;
>name : Identifier | LiteralExpression >name : Identifier | LiteralExpression
@ -2518,9 +2510,9 @@ declare module "typescript" {
>name : Identifier >name : Identifier
>Identifier : Identifier >Identifier : Identifier
} }
interface ExportDeclaration extends Statement, ModuleElement { interface ExportDeclaration extends Declaration, ModuleElement {
>ExportDeclaration : ExportDeclaration >ExportDeclaration : ExportDeclaration
>Statement : Statement >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
exportClause?: NamedExports; exportClause?: NamedExports;
@ -2568,9 +2560,9 @@ declare module "typescript" {
>ExportSpecifier : ImportOrExportSpecifier >ExportSpecifier : ImportOrExportSpecifier
>ImportOrExportSpecifier : ImportOrExportSpecifier >ImportOrExportSpecifier : ImportOrExportSpecifier
interface ExportAssignment extends Statement, ModuleElement { interface ExportAssignment extends Declaration, ModuleElement {
>ExportAssignment : ExportAssignment >ExportAssignment : ExportAssignment
>Statement : Statement >Declaration : Declaration
>ModuleElement : ModuleElement >ModuleElement : ModuleElement
isExportEquals?: boolean; isExportEquals?: boolean;
@ -2594,10 +2586,9 @@ declare module "typescript" {
hasTrailingNewLine?: boolean; hasTrailingNewLine?: boolean;
>hasTrailingNewLine : boolean >hasTrailingNewLine : boolean
} }
interface SourceFile extends Declaration, ExportContainer { interface SourceFile extends Declaration {
>SourceFile : SourceFile >SourceFile : SourceFile
>Declaration : Declaration >Declaration : Declaration
>ExportContainer : ExportContainer
statements: NodeArray<ModuleElement>; statements: NodeArray<ModuleElement>;
>statements : NodeArray<ModuleElement> >statements : NodeArray<ModuleElement>
@ -3233,8 +3224,8 @@ declare module "typescript" {
>EmitResolver : EmitResolver >EmitResolver : EmitResolver
getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string;
>getGeneratedNameForNode : (node: EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration) => string >getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string
>node : EnumDeclaration | ExportDeclaration | ModuleDeclaration | ImportDeclaration >node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration
>ModuleDeclaration : ModuleDeclaration >ModuleDeclaration : ModuleDeclaration
>EnumDeclaration : EnumDeclaration >EnumDeclaration : EnumDeclaration
>ImportDeclaration : ImportDeclaration >ImportDeclaration : ImportDeclaration
@ -3245,8 +3236,8 @@ declare module "typescript" {
>node : Identifier >node : Identifier
>Identifier : Identifier >Identifier : Identifier
getExportAssignmentName(node: SourceFile): string; hasExportDefaultValue(node: SourceFile): boolean;
>getExportAssignmentName : (node: SourceFile) => string >hasExportDefaultValue : (node: SourceFile) => boolean
>node : SourceFile >node : SourceFile
>SourceFile : SourceFile >SourceFile : SourceFile
@ -3423,6 +3414,9 @@ declare module "typescript" {
Optional = 536870912, Optional = 536870912,
>Optional : SymbolFlags >Optional : SymbolFlags
ExportStar = 1073741824,
>ExportStar : SymbolFlags
Enum = 384, Enum = 384,
>Enum : SymbolFlags >Enum : SymbolFlags
@ -3587,13 +3581,6 @@ declare module "typescript" {
referenced?: boolean; referenced?: boolean;
>referenced : boolean >referenced : boolean
exportAssignmentChecked?: boolean;
>exportAssignmentChecked : boolean
exportAssignmentSymbol?: Symbol;
>exportAssignmentSymbol : Symbol
>Symbol : Symbol
unionType?: UnionType; unionType?: UnionType;
>unionType : UnionType >unionType : UnionType
>UnionType : UnionType >UnionType : UnionType
@ -3601,6 +3588,9 @@ declare module "typescript" {
resolvedExports?: SymbolTable; resolvedExports?: SymbolTable;
>resolvedExports : SymbolTable >resolvedExports : SymbolTable
>SymbolTable : SymbolTable >SymbolTable : SymbolTable
exportsChecked?: boolean;
>exportsChecked : boolean
} }
interface TransientSymbol extends Symbol, SymbolLinks { interface TransientSymbol extends Symbol, SymbolLinks {
>TransientSymbol : TransientSymbol >TransientSymbol : TransientSymbol

View file

@ -1,6 +1,6 @@
tests/cases/compiler/ExportAssignment7.ts(1,14): error TS1148: Cannot compile external modules unless the '--module' flag is provided. tests/cases/compiler/ExportAssignment7.ts(1,14): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/compiler/ExportAssignment7.ts(4,1): error TS2304: Cannot find name 'B'.
tests/cases/compiler/ExportAssignment7.ts(4,1): error TS2309: An export assignment cannot be used in a module with other exported elements. tests/cases/compiler/ExportAssignment7.ts(4,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
tests/cases/compiler/ExportAssignment7.ts(4,10): error TS2304: Cannot find name 'B'.
==== tests/cases/compiler/ExportAssignment7.ts (3 errors) ==== ==== tests/cases/compiler/ExportAssignment7.ts (3 errors) ====
@ -11,6 +11,6 @@ tests/cases/compiler/ExportAssignment7.ts(4,1): error TS2309: An export assignme
export = B; export = B;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2304: Cannot find name 'B'. !!! error TS2309: An export assignment cannot be used in a module with other exported elements.
~~~~~~~~~~~ ~
!!! error TS2309: An export assignment cannot be used in a module with other exported elements. !!! error TS2304: Cannot find name 'B'.

View file

@ -1,6 +1,6 @@
tests/cases/compiler/ExportAssignment8.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided. tests/cases/compiler/ExportAssignment8.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/compiler/ExportAssignment8.ts(1,1): error TS2304: Cannot find name 'B'.
tests/cases/compiler/ExportAssignment8.ts(1,1): error TS2309: An export assignment cannot be used in a module with other exported elements. tests/cases/compiler/ExportAssignment8.ts(1,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
tests/cases/compiler/ExportAssignment8.ts(1,10): error TS2304: Cannot find name 'B'.
==== tests/cases/compiler/ExportAssignment8.ts (3 errors) ==== ==== tests/cases/compiler/ExportAssignment8.ts (3 errors) ====
@ -8,9 +8,9 @@ tests/cases/compiler/ExportAssignment8.ts(1,1): error TS2309: An export assignme
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided. !!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2304: Cannot find name 'B'.
~~~~~~~~~~~
!!! error TS2309: An export assignment cannot be used in a module with other exported elements. !!! error TS2309: An export assignment cannot be used in a module with other exported elements.
~
!!! error TS2304: Cannot find name 'B'.
export class C { export class C {
} }

View file

@ -1,4 +1,4 @@
tests/cases/compiler/aliasBug.ts(17,10): error TS2305: Module 'foo.bar.baz' has no exported member 'bar'. tests/cases/compiler/aliasBug.ts(17,15): error TS2305: Module 'foo.bar.baz' has no exported member 'bar'.
==== tests/cases/compiler/aliasBug.ts (1 errors) ==== ==== tests/cases/compiler/aliasBug.ts (1 errors) ====
@ -19,7 +19,7 @@ tests/cases/compiler/aliasBug.ts(17,10): error TS2305: Module 'foo.bar.baz' has
var p1: provide.Provide; // error here, but should be okay var p1: provide.Provide; // error here, but should be okay
var p2: foo.Provide; var p2: foo.Provide;
var p3:booz.bar; var p3:booz.bar;
~~~~~~~~ ~~~
!!! error TS2305: Module 'foo.bar.baz' has no exported member 'bar'. !!! error TS2305: Module 'foo.bar.baz' has no exported member 'bar'.
var p22 = new provide.Provide(); var p22 = new provide.Provide();
} }

View file

@ -1,10 +1,10 @@
tests/cases/compiler/aliasErrors.ts(11,1): error TS2304: Cannot find name 'no'. tests/cases/compiler/aliasErrors.ts(11,12): error TS2304: Cannot find name 'no'.
tests/cases/compiler/aliasErrors.ts(12,1): error TS2304: Cannot find name 'no'. tests/cases/compiler/aliasErrors.ts(12,13): error TS2304: Cannot find name 'no'.
tests/cases/compiler/aliasErrors.ts(13,12): error TS1003: Identifier expected. tests/cases/compiler/aliasErrors.ts(13,12): error TS1003: Identifier expected.
tests/cases/compiler/aliasErrors.ts(14,12): error TS1003: Identifier expected. tests/cases/compiler/aliasErrors.ts(14,12): error TS1003: Identifier expected.
tests/cases/compiler/aliasErrors.ts(15,12): error TS1003: Identifier expected. tests/cases/compiler/aliasErrors.ts(15,12): error TS1003: Identifier expected.
tests/cases/compiler/aliasErrors.ts(16,1): error TS2304: Cannot find name 'undefined'. tests/cases/compiler/aliasErrors.ts(16,12): error TS2304: Cannot find name 'undefined'.
tests/cases/compiler/aliasErrors.ts(26,10): error TS2305: Module 'foo.bar.baz' has no exported member 'bar'. tests/cases/compiler/aliasErrors.ts(26,15): error TS2305: Module 'foo.bar.baz' has no exported member 'bar'.
==== tests/cases/compiler/aliasErrors.ts (7 errors) ==== ==== tests/cases/compiler/aliasErrors.ts (7 errors) ====
@ -19,10 +19,10 @@ tests/cases/compiler/aliasErrors.ts(26,10): error TS2305: Module 'foo.bar.baz' h
import beez = foo.bar; import beez = foo.bar;
import m = no; import m = no;
~~~~~~~~~~~~~~ ~~
!!! error TS2304: Cannot find name 'no'. !!! error TS2304: Cannot find name 'no'.
import m2 = no.mod; import m2 = no.mod;
~~~~~~~~~~~~~~~~~~~ ~~
!!! error TS2304: Cannot find name 'no'. !!! error TS2304: Cannot find name 'no'.
import n = 5; import n = 5;
~ ~
@ -34,7 +34,7 @@ tests/cases/compiler/aliasErrors.ts(26,10): error TS2305: Module 'foo.bar.baz' h
~~~~ ~~~~
!!! error TS1003: Identifier expected. !!! error TS1003: Identifier expected.
import r = undefined; import r = undefined;
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
!!! error TS2304: Cannot find name 'undefined'. !!! error TS2304: Cannot find name 'undefined'.
@ -46,7 +46,7 @@ tests/cases/compiler/aliasErrors.ts(26,10): error TS2305: Module 'foo.bar.baz' h
var p1: provide.Provide; var p1: provide.Provide;
var p2: foo.Provide; var p2: foo.Provide;
var p3:booz.bar; var p3:booz.bar;
~~~~~~~~ ~~~
!!! error TS2305: Module 'foo.bar.baz' has no exported member 'bar'. !!! error TS2305: Module 'foo.bar.baz' has no exported member 'bar'.
var p22 = new provide.Provide(); var p22 = new provide.Provide();
} }

View file

@ -1,4 +1,4 @@
tests/cases/compiler/classExtendingQualifiedName.ts(5,21): error TS2305: Module 'M' has no exported member 'C'. tests/cases/compiler/classExtendingQualifiedName.ts(5,23): error TS2305: Module 'M' has no exported member 'C'.
==== tests/cases/compiler/classExtendingQualifiedName.ts (1 errors) ==== ==== tests/cases/compiler/classExtendingQualifiedName.ts (1 errors) ====
@ -7,7 +7,7 @@ tests/cases/compiler/classExtendingQualifiedName.ts(5,21): error TS2305: Module
} }
class D extends M.C { class D extends M.C {
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'C'. !!! error TS2305: Module 'M' has no exported member 'C'.
} }
} }

View file

@ -1,7 +1,7 @@
tests/cases/compiler/complicatedPrivacy.ts(11,24): error TS1054: A 'get' accessor cannot have parameters. tests/cases/compiler/complicatedPrivacy.ts(11,24): error TS1054: A 'get' accessor cannot have parameters.
tests/cases/compiler/complicatedPrivacy.ts(35,5): error TS1170: A computed property name in a type literal must directly refer to a built-in symbol. tests/cases/compiler/complicatedPrivacy.ts(35,5): error TS1170: A computed property name in a type literal must directly refer to a built-in symbol.
tests/cases/compiler/complicatedPrivacy.ts(35,6): error TS2304: Cannot find name 'number'. tests/cases/compiler/complicatedPrivacy.ts(35,6): error TS2304: Cannot find name 'number'.
tests/cases/compiler/complicatedPrivacy.ts(73,49): error TS2305: Module 'mglo5' has no exported member 'i6'. tests/cases/compiler/complicatedPrivacy.ts(73,55): error TS2305: Module 'mglo5' has no exported member 'i6'.
==== tests/cases/compiler/complicatedPrivacy.ts (4 errors) ==== ==== tests/cases/compiler/complicatedPrivacy.ts (4 errors) ====
@ -84,7 +84,7 @@ tests/cases/compiler/complicatedPrivacy.ts(73,49): error TS2305: Module 'mglo5'
export module m3 { export module m3 {
export class c_pr implements mglo5.i5, mglo5.i6 { export class c_pr implements mglo5.i5, mglo5.i6 {
~~~~~~~~ ~~
!!! error TS2305: Module 'mglo5' has no exported member 'i6'. !!! error TS2305: Module 'mglo5' has no exported member 'i6'.
f1() { f1() {
return "Hello"; return "Hello";

View file

@ -1,4 +1,4 @@
tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(11,1): error TS2304: Cannot find name 'module'. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(11,13): error TS2304: Cannot find name 'module'.
tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(11,19): error TS1005: ';' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(11,19): error TS1005: ';' expected.
tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(22,35): error TS1005: ')' expected. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(22,35): error TS1005: ')' expected.
tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(22,39): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(22,39): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type.
@ -96,7 +96,7 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS
} }
import fs = module("fs"); import fs = module("fs");
~~~~~~~~~~~~~~~~~~ ~~~~~~
!!! error TS2304: Cannot find name 'module'. !!! error TS2304: Cannot find name 'module'.
~ ~
!!! error TS1005: ';' expected. !!! error TS1005: ';' expected.

View file

@ -42,23 +42,23 @@ module m2 {
} }
var m2: { var m2: {
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } >m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }
(): m2.connectExport; (): m2.connectExport;
>m2 : unknown >m2 : unknown
>connectExport : m2.connectExport >connectExport : default.connectExport
test1: m2.connectModule; test1: m2.connectModule;
>test1 : m2.connectModule >test1 : default.connectModule
>m2 : unknown >m2 : unknown
>connectModule : m2.connectModule >connectModule : default.connectModule
test2(): m2.connectModule; test2(): m2.connectModule;
>test2 : () => m2.connectModule >test2 : () => default.connectModule
>m2 : unknown >m2 : unknown
>connectModule : m2.connectModule >connectModule : default.connectModule
}; };
export = m2; export = m2;
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } >m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }

View file

@ -7,7 +7,7 @@ declare module "express" {
function express(): express.ExpressServer; function express(): express.ExpressServer;
>express : typeof express >express : typeof express
>express : unknown >express : unknown
>ExpressServer : express.ExpressServer >ExpressServer : default.ExpressServer
module express { module express {
>express : typeof express >express : typeof express

View file

@ -27,24 +27,24 @@ module m2 {
} }
var m2: { var m2: {
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } >m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }
(): m2.connectExport; (): m2.connectExport;
>m2 : unknown >m2 : unknown
>connectExport : m2.connectExport >connectExport : default.connectExport
test1: m2.connectModule; test1: m2.connectModule;
>test1 : m2.connectModule >test1 : default.connectModule
>m2 : unknown >m2 : unknown
>connectModule : m2.connectModule >connectModule : default.connectModule
test2(): m2.connectModule; test2(): m2.connectModule;
>test2 : () => m2.connectModule >test2 : () => default.connectModule
>m2 : unknown >m2 : unknown
>connectModule : m2.connectModule >connectModule : default.connectModule
}; };
export = m2; export = m2;
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } >m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }

View file

@ -28,24 +28,24 @@ module m2 {
var x = 10, m2: { var x = 10, m2: {
>x : number >x : number
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } >m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }
(): m2.connectExport; (): m2.connectExport;
>m2 : unknown >m2 : unknown
>connectExport : m2.connectExport >connectExport : default.connectExport
test1: m2.connectModule; test1: m2.connectModule;
>test1 : m2.connectModule >test1 : default.connectModule
>m2 : unknown >m2 : unknown
>connectModule : m2.connectModule >connectModule : default.connectModule
test2(): m2.connectModule; test2(): m2.connectModule;
>test2 : () => m2.connectModule >test2 : () => default.connectModule
>m2 : unknown >m2 : unknown
>connectModule : m2.connectModule >connectModule : default.connectModule
}; };
export = m2; export = m2;
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; } >m2 : { (): default.connectExport; test1: default.connectModule; test2(): default.connectModule; }

View file

@ -1,10 +1,10 @@
tests/cases/compiler/declareModifierOnImport1.ts(1,1): error TS1079: A 'declare' modifier cannot be used with an import declaration. tests/cases/compiler/declareModifierOnImport1.ts(1,1): error TS1079: A 'declare' modifier cannot be used with an import declaration.
tests/cases/compiler/declareModifierOnImport1.ts(1,1): error TS2304: Cannot find name 'b'. tests/cases/compiler/declareModifierOnImport1.ts(1,20): error TS2304: Cannot find name 'b'.
==== tests/cases/compiler/declareModifierOnImport1.ts (2 errors) ==== ==== tests/cases/compiler/declareModifierOnImport1.ts (2 errors) ====
declare import a = b; declare import a = b;
~~~~~~~ ~~~~~~~
!!! error TS1079: A 'declare' modifier cannot be used with an import declaration. !!! error TS1079: A 'declare' modifier cannot be used with an import declaration.
~~~~~~~~~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'b'. !!! error TS2304: Cannot find name 'b'.

View file

@ -1,15 +1,15 @@
tests/cases/conformance/externalModules/foo1.ts(3,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided. tests/cases/conformance/externalModules/foo1.ts(3,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/conformance/externalModules/foo1.ts(3,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo1.ts(3,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo1.ts(4,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo1.ts(4,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo2.ts(3,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo2.ts(3,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo2.ts(4,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo2.ts(4,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo3.ts(7,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo3.ts(7,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo3.ts(8,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo3.ts(8,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo4.ts(1,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo4.ts(1,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo4.ts(8,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo4.ts(8,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo5.ts(4,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo5.ts(4,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo5.ts(5,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo5.ts(5,1): error TS2300: Duplicate identifier 'default'.
tests/cases/conformance/externalModules/foo5.ts(6,1): error TS2308: A module cannot have more than one export assignment. tests/cases/conformance/externalModules/foo5.ts(6,1): error TS2300: Duplicate identifier 'default'.
==== tests/cases/conformance/externalModules/foo1.ts (3 errors) ==== ==== tests/cases/conformance/externalModules/foo1.ts (3 errors) ====
@ -19,20 +19,20 @@ tests/cases/conformance/externalModules/foo5.ts(6,1): error TS2308: A module can
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided. !!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
export = y; export = y;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
==== tests/cases/conformance/externalModules/foo2.ts (2 errors) ==== ==== tests/cases/conformance/externalModules/foo2.ts (2 errors) ====
var x = 10; var x = 10;
class y {}; class y {};
export = x; export = x;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
export = y; export = y;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
==== tests/cases/conformance/externalModules/foo3.ts (2 errors) ==== ==== tests/cases/conformance/externalModules/foo3.ts (2 errors) ====
module x { module x {
@ -43,15 +43,15 @@ tests/cases/conformance/externalModules/foo5.ts(6,1): error TS2308: A module can
} }
export = x; export = x;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
export = y; export = y;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
==== tests/cases/conformance/externalModules/foo4.ts (2 errors) ==== ==== tests/cases/conformance/externalModules/foo4.ts (2 errors) ====
export = x; export = x;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
function x(){ function x(){
return 42; return 42;
} }
@ -60,7 +60,7 @@ tests/cases/conformance/externalModules/foo5.ts(6,1): error TS2308: A module can
} }
export = y; export = y;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
==== tests/cases/conformance/externalModules/foo5.ts (3 errors) ==== ==== tests/cases/conformance/externalModules/foo5.ts (3 errors) ====
var x = 5; var x = 5;
@ -68,11 +68,11 @@ tests/cases/conformance/externalModules/foo5.ts(6,1): error TS2308: A module can
var z = {}; var z = {};
export = x; export = x;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
export = y; export = y;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
export = z; export = z;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.

View file

@ -22,9 +22,9 @@ class Foo {
>Foo : Foo >Foo : Foo
x: Foo.Bar; x: Foo.Bar;
>x : Foo.Bar >x : default.Bar
>Foo : unknown >Foo : unknown
>Bar : Foo.Bar >Bar : default.Bar
} }
module Foo { module Foo {
>Foo : typeof Foo >Foo : typeof Foo

View file

@ -39,7 +39,6 @@ var Foo3 = (function () {
return Foo3; return Foo3;
})(); })();
; // Error, not an expression ; // Error, not an expression
module.exports = ;
//// [foo4.js] //// [foo4.js]
module.exports = true; module.exports = true;
//// [foo5.js] //// [foo5.js]

View file

@ -12,7 +12,7 @@ interface server {
(): server.Server; (): server.Server;
>server : unknown >server : unknown
>Server : server.Server >Server : default.Server
startTime: Date; startTime: Date;
>startTime : Date >startTime : Date

View file

@ -1,11 +1,11 @@
tests/cases/compiler/extBaseClass2.ts(2,29): error TS2305: Module 'M' has no exported member 'B'. tests/cases/compiler/extBaseClass2.ts(2,31): error TS2305: Module 'M' has no exported member 'B'.
tests/cases/compiler/extBaseClass2.ts(7,29): error TS2304: Cannot find name 'B'. tests/cases/compiler/extBaseClass2.ts(7,29): error TS2304: Cannot find name 'B'.
==== tests/cases/compiler/extBaseClass2.ts (2 errors) ==== ==== tests/cases/compiler/extBaseClass2.ts (2 errors) ====
module N { module N {
export class C4 extends M.B { export class C4 extends M.B {
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'B'. !!! error TS2305: Module 'M' has no exported member 'B'.
} }
} }

View file

@ -1,4 +1,4 @@
tests/cases/compiler/genericFunduleInModule.ts(8,8): error TS2305: Module 'A' has no exported member 'B'. tests/cases/compiler/genericFunduleInModule.ts(8,10): error TS2305: Module 'A' has no exported member 'B'.
==== tests/cases/compiler/genericFunduleInModule.ts (1 errors) ==== ==== tests/cases/compiler/genericFunduleInModule.ts (1 errors) ====
@ -10,6 +10,6 @@ tests/cases/compiler/genericFunduleInModule.ts(8,8): error TS2305: Module 'A' ha
} }
var b: A.B; var b: A.B;
~~~ ~
!!! error TS2305: Module 'A' has no exported member 'B'. !!! error TS2305: Module 'A' has no exported member 'B'.
A.B(1); A.B(1);

View file

@ -1,4 +1,4 @@
tests/cases/compiler/genericFunduleInModule2.ts(11,8): error TS2305: Module 'A' has no exported member 'B'. tests/cases/compiler/genericFunduleInModule2.ts(11,10): error TS2305: Module 'A' has no exported member 'B'.
==== tests/cases/compiler/genericFunduleInModule2.ts (1 errors) ==== ==== tests/cases/compiler/genericFunduleInModule2.ts (1 errors) ====
@ -13,6 +13,6 @@ tests/cases/compiler/genericFunduleInModule2.ts(11,8): error TS2305: Module 'A'
} }
var b: A.B; var b: A.B;
~~~ ~
!!! error TS2305: Module 'A' has no exported member 'B'. !!! error TS2305: Module 'A' has no exported member 'B'.
A.B(1); A.B(1);

View file

@ -8,7 +8,7 @@ tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenc
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(14,23): error TS2314: Generic type 'C<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(14,23): error TS2314: Generic type 'C<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(14,27): error TS2314: Generic type 'C<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(14,27): error TS2314: Generic type 'C<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(16,25): error TS2314: Generic type 'C<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(16,25): error TS2314: Generic type 'C<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(22,26): error TS2305: Module 'M' has no exported member 'C'. tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(22,28): error TS2305: Module 'M' has no exported member 'C'.
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(23,28): error TS2314: Generic type 'E<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(23,28): error TS2314: Generic type 'E<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(25,30): error TS2314: Generic type 'C<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(25,30): error TS2314: Generic type 'C<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(26,30): error TS2314: Generic type 'E<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument.d.ts(26,30): error TS2314: Generic type 'E<T>' requires 1 type argument(s).
@ -57,7 +57,7 @@ tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenc
} }
declare class D2 extends M.C { } declare class D2 extends M.C { }
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'C'. !!! error TS2305: Module 'M' has no exported member 'C'.
declare class D3<T extends M.E> { } declare class D3<T extends M.E> { }
~~~ ~~~

View file

@ -15,9 +15,9 @@ tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenc
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(18,38): error TS2314: Generic type 'I<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(18,38): error TS2314: Generic type 'I<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(20,17): error TS2314: Generic type 'I<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(20,17): error TS2314: Generic type 'I<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(23,21): error TS2314: Generic type 'I<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(23,21): error TS2314: Generic type 'I<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(29,18): error TS2305: Module 'M' has no exported member 'C'. tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(29,20): error TS2305: Module 'M' has no exported member 'C'.
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(30,24): error TS2314: Generic type 'E<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(30,24): error TS2314: Generic type 'E<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(31,22): error TS2305: Module 'M' has no exported member 'C'. tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(31,24): error TS2305: Module 'M' has no exported member 'C'.
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(33,22): error TS2314: Generic type 'I<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(33,22): error TS2314: Generic type 'I<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(34,22): error TS2314: Generic type 'E<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(34,22): error TS2314: Generic type 'E<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(36,10): error TS2304: Cannot find name 'C'. tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument2.ts(36,10): error TS2304: Cannot find name 'C'.
@ -88,13 +88,13 @@ tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenc
} }
class D2 extends M.C { } class D2 extends M.C { }
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'C'. !!! error TS2305: Module 'M' has no exported member 'C'.
interface D3<T extends M.E> { } interface D3<T extends M.E> { }
~~~ ~~~
!!! error TS2314: Generic type 'E<T>' requires 1 type argument(s). !!! error TS2314: Generic type 'E<T>' requires 1 type argument(s).
interface I2 extends M.C { } interface I2 extends M.C { }
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'C'. !!! error TS2305: Module 'M' has no exported member 'C'.
function h<T extends I>(x: T) { } function h<T extends I>(x: T) { }

View file

@ -8,7 +8,7 @@ tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenc
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(14,23): error TS2314: Generic type 'C<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(14,23): error TS2314: Generic type 'C<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(14,27): error TS2314: Generic type 'C<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(14,27): error TS2314: Generic type 'C<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(16,25): error TS2314: Generic type 'C<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(16,25): error TS2314: Generic type 'C<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(22,26): error TS2305: Module 'M' has no exported member 'C'. tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(22,28): error TS2305: Module 'M' has no exported member 'C'.
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(23,28): error TS2314: Generic type 'E<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(23,28): error TS2314: Generic type 'E<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(25,30): error TS2314: Generic type 'C<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(25,30): error TS2314: Generic type 'C<T>' requires 1 type argument(s).
tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(26,30): error TS2314: Generic type 'E<T>' requires 1 type argument(s). tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenceWithoutTypeArgument3.ts(26,30): error TS2314: Generic type 'E<T>' requires 1 type argument(s).
@ -57,7 +57,7 @@ tests/cases/conformance/types/specifyingTypes/typeReferences/genericTypeReferenc
} }
declare class D2 extends M.C { } declare class D2 extends M.C { }
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'C'. !!! error TS2305: Module 'M' has no exported member 'C'.
declare class D3<T extends M.E> { } declare class D3<T extends M.E> { }
~~~ ~~~

View file

@ -11,12 +11,12 @@ tests/cases/compiler/getAccessorWithImpliedReturnTypeAndFunctionClassMerge.ts(21
declare function _<T>(value: Array<T>): _<T>; declare function _<T>(value: Array<T>): _<T>;
~ ~
!!! error TS2300: Duplicate identifier '_'. !!! error TS2300: Duplicate identifier '_'.
~~~~ ~
!!! error TS2304: Cannot find name '_'. !!! error TS2304: Cannot find name '_'.
declare function _<T>(value: T): _<T>; declare function _<T>(value: T): _<T>;
~ ~
!!! error TS2300: Duplicate identifier '_'. !!! error TS2300: Duplicate identifier '_'.
~~~~ ~
!!! error TS2304: Cannot find name '_'. !!! error TS2304: Cannot find name '_'.
declare module _ { declare module _ {

View file

@ -1,4 +1,4 @@
tests/cases/compiler/importAnImport.ts(6,5): error TS2305: Module 'c.a.b' has no exported member 'ma'. tests/cases/compiler/importAnImport.ts(6,23): error TS2305: Module 'c.a.b' has no exported member 'ma'.
==== tests/cases/compiler/importAnImport.ts (1 errors) ==== ==== tests/cases/compiler/importAnImport.ts (1 errors) ====
@ -8,6 +8,6 @@ tests/cases/compiler/importAnImport.ts(6,5): error TS2305: Module 'c.a.b' has no
module m0 { module m0 {
import m8 = c.a.b.ma; import m8 = c.a.b.ma;
~~~~~~~~~~~~~~~~~~~~~ ~~
!!! error TS2305: Module 'c.a.b' has no exported member 'ma'. !!! error TS2305: Module 'c.a.b' has no exported member 'ma'.
} }

View file

@ -1,9 +1,9 @@
tests/cases/compiler/importDeclWithClassModifiers.ts(5,1): error TS2305: Module 'x' has no exported member 'c'.
tests/cases/compiler/importDeclWithClassModifiers.ts(5,8): error TS1044: 'public' modifier cannot appear on a module element. tests/cases/compiler/importDeclWithClassModifiers.ts(5,8): error TS1044: 'public' modifier cannot appear on a module element.
tests/cases/compiler/importDeclWithClassModifiers.ts(6,1): error TS2305: Module 'x' has no exported member 'c'. tests/cases/compiler/importDeclWithClassModifiers.ts(5,28): error TS2305: Module 'x' has no exported member 'c'.
tests/cases/compiler/importDeclWithClassModifiers.ts(6,8): error TS1044: 'private' modifier cannot appear on a module element. tests/cases/compiler/importDeclWithClassModifiers.ts(6,8): error TS1044: 'private' modifier cannot appear on a module element.
tests/cases/compiler/importDeclWithClassModifiers.ts(7,1): error TS2305: Module 'x' has no exported member 'c'. tests/cases/compiler/importDeclWithClassModifiers.ts(6,29): error TS2305: Module 'x' has no exported member 'c'.
tests/cases/compiler/importDeclWithClassModifiers.ts(7,8): error TS1044: 'static' modifier cannot appear on a module element. tests/cases/compiler/importDeclWithClassModifiers.ts(7,8): error TS1044: 'static' modifier cannot appear on a module element.
tests/cases/compiler/importDeclWithClassModifiers.ts(7,28): error TS2305: Module 'x' has no exported member 'c'.
==== tests/cases/compiler/importDeclWithClassModifiers.ts (6 errors) ==== ==== tests/cases/compiler/importDeclWithClassModifiers.ts (6 errors) ====
@ -12,19 +12,19 @@ tests/cases/compiler/importDeclWithClassModifiers.ts(7,8): error TS1044: 'static
} }
} }
export public import a = x.c; export public import a = x.c;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'x' has no exported member 'c'.
~~~~~~ ~~~~~~
!!! error TS1044: 'public' modifier cannot appear on a module element. !!! error TS1044: 'public' modifier cannot appear on a module element.
export private import b = x.c; ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'x' has no exported member 'c'. !!! error TS2305: Module 'x' has no exported member 'c'.
export private import b = x.c;
~~~~~~~ ~~~~~~~
!!! error TS1044: 'private' modifier cannot appear on a module element. !!! error TS1044: 'private' modifier cannot appear on a module element.
export static import c = x.c; ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'x' has no exported member 'c'. !!! error TS2305: Module 'x' has no exported member 'c'.
export static import c = x.c;
~~~~~~ ~~~~~~
!!! error TS1044: 'static' modifier cannot appear on a module element. !!! error TS1044: 'static' modifier cannot appear on a module element.
~
!!! error TS2305: Module 'x' has no exported member 'c'.
var b: a; var b: a;

View file

@ -1,6 +1,6 @@
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided. tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS2305: Module 'x' has no exported member 'c'.
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,9): error TS1029: 'export' modifier must precede 'declare' modifier. tests/cases/compiler/importDeclWithDeclareModifier.ts(5,9): error TS1029: 'export' modifier must precede 'declare' modifier.
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,29): error TS2305: Module 'x' has no exported member 'c'.
==== tests/cases/compiler/importDeclWithDeclareModifier.ts (3 errors) ==== ==== tests/cases/compiler/importDeclWithDeclareModifier.ts (3 errors) ====
@ -11,9 +11,9 @@ tests/cases/compiler/importDeclWithDeclareModifier.ts(5,9): error TS1029: 'expor
declare export import a = x.c; declare export import a = x.c;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided. !!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'x' has no exported member 'c'.
~~~~~~ ~~~~~~
!!! error TS1029: 'export' modifier must precede 'declare' modifier. !!! error TS1029: 'export' modifier must precede 'declare' modifier.
~
!!! error TS2305: Module 'x' has no exported member 'c'.
var b: a; var b: a;

View file

@ -1,4 +1,4 @@
tests/cases/compiler/importDeclWithExportModifier.ts(5,1): error TS2305: Module 'x' has no exported member 'c'. tests/cases/compiler/importDeclWithExportModifier.ts(5,21): error TS2305: Module 'x' has no exported member 'c'.
==== tests/cases/compiler/importDeclWithExportModifier.ts (1 errors) ==== ==== tests/cases/compiler/importDeclWithExportModifier.ts (1 errors) ====
@ -7,7 +7,7 @@ tests/cases/compiler/importDeclWithExportModifier.ts(5,1): error TS2305: Module
} }
} }
export import a = x.c; export import a = x.c;
~~~~~~~~~~~~~~~~~~~~~~ ~
!!! error TS2305: Module 'x' has no exported member 'c'. !!! error TS2305: Module 'x' has no exported member 'c'.
var b: a; var b: a;

View file

@ -1,4 +1,4 @@
tests/cases/compiler/importDeclWithExportModifierAndExportAssignment.ts(5,1): error TS2305: Module 'x' has no exported member 'c'. tests/cases/compiler/importDeclWithExportModifierAndExportAssignment.ts(5,21): error TS2305: Module 'x' has no exported member 'c'.
tests/cases/compiler/importDeclWithExportModifierAndExportAssignment.ts(6,1): error TS2309: An export assignment cannot be used in a module with other exported elements. tests/cases/compiler/importDeclWithExportModifierAndExportAssignment.ts(6,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
@ -8,7 +8,7 @@ tests/cases/compiler/importDeclWithExportModifierAndExportAssignment.ts(6,1): er
} }
} }
export import a = x.c; export import a = x.c;
~~~~~~~~~~~~~~~~~~~~~~ ~
!!! error TS2305: Module 'x' has no exported member 'c'. !!! error TS2305: Module 'x' has no exported member 'c'.
export = x; export = x;
~~~~~~~~~~~ ~~~~~~~~~~~

View file

@ -17,6 +17,6 @@ tests/cases/compiler/importedModuleAddToGlobal.ts(15,23): error TS2304: Cannot f
module C { module C {
import a = A; import a = A;
function hello(): b.B { return null; } function hello(): b.B { return null; }
~~~ ~
!!! error TS2304: Cannot find name 'b'. !!! error TS2304: Cannot find name 'b'.
} }

View file

@ -1,4 +1,4 @@
tests/cases/compiler/innerAliases.ts(19,8): error TS2305: Module 'D' has no exported member 'inner'. tests/cases/compiler/innerAliases.ts(19,10): error TS2305: Module 'D' has no exported member 'inner'.
tests/cases/compiler/innerAliases.ts(21,11): error TS2339: Property 'inner' does not exist on type 'typeof D'. tests/cases/compiler/innerAliases.ts(21,11): error TS2339: Property 'inner' does not exist on type 'typeof D'.
@ -22,7 +22,7 @@ tests/cases/compiler/innerAliases.ts(21,11): error TS2339: Property 'inner' does
} }
var c: D.inner.Class1; var c: D.inner.Class1;
~~~~~~~~~~~~~~ ~~~~~
!!! error TS2305: Module 'D' has no exported member 'inner'. !!! error TS2305: Module 'D' has no exported member 'inner'.
c = new D.inner.Class1(); c = new D.inner.Class1();

View file

@ -8,7 +8,7 @@ tests/cases/compiler/instantiateTypeParameter.ts(3,1): error TS1128: Declaration
var x: T<>; var x: T<>;
~~~ ~~~
!!! error TS1131: Property or signature expected. !!! error TS1131: Property or signature expected.
~~~ ~
!!! error TS2304: Cannot find name 'T'. !!! error TS2304: Cannot find name 'T'.
} }
~ ~

View file

@ -1,4 +1,4 @@
tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts(11,8): error TS2305: Module '"tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts(11,10): error TS2305: Module '"tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'.
==== tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts (1 errors) ==== ==== tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError.ts (1 errors) ====
@ -13,5 +13,5 @@ tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessE
} }
var x: c.b; var x: c.b;
~~~ ~
!!! error TS2305: Module '"tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. !!! error TS2305: Module '"tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'.

View file

@ -1,4 +1,4 @@
tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts(16,15): error TS2305: Module '"tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts(16,17): error TS2305: Module '"tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'.
==== tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts (1 errors) ==== ==== tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError.ts (1 errors) ====
@ -18,5 +18,5 @@ tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExp
export var z: c.b.I; export var z: c.b.I;
~~~~~ ~
!!! error TS2305: Module '"tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'. !!! error TS2305: Module '"tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExportAccessError".c' has no exported member 'b'.

View file

@ -1,7 +1,7 @@
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(5,1): error TS2304: Cannot find name 'V'. tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(5,12): error TS2304: Cannot find name 'V'.
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(11,1): error TS2304: Cannot find name 'C'. tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(11,12): error TS2304: Cannot find name 'C'.
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(17,1): error TS2304: Cannot find name 'E'. tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(17,12): error TS2304: Cannot find name 'E'.
tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(23,1): error TS2304: Cannot find name 'I'. tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts(23,12): error TS2304: Cannot find name 'I'.
==== tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts (4 errors) ==== ==== tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts (4 errors) ====
@ -10,7 +10,7 @@ tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIde
var V = 12; var V = 12;
import v = V; import v = V;
~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'V'. !!! error TS2304: Cannot find name 'V'.
class C { class C {
@ -18,7 +18,7 @@ tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIde
} }
import c = C; import c = C;
~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'C'. !!! error TS2304: Cannot find name 'C'.
enum E { enum E {
@ -26,7 +26,7 @@ tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIde
} }
import e = E; import e = E;
~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'E'. !!! error TS2304: Cannot find name 'E'.
interface I { interface I {
@ -34,6 +34,6 @@ tests/cases/conformance/internalModules/importDeclarations/invalidImportAliasIde
} }
import i = I; import i = I;
~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'I'. !!! error TS2304: Cannot find name 'I'.

View file

@ -20,7 +20,7 @@ tests/cases/conformance/internalModules/moduleDeclarations/invalidInstantiatedMo
var m = M2; var m = M2;
var p: m.Point; // Error var p: m.Point; // Error
~~~~~~~ ~
!!! error TS2304: Cannot find name 'm'. !!! error TS2304: Cannot find name 'm'.

View file

@ -1,4 +1,4 @@
tests/cases/compiler/moduleClassArrayCodeGenTest.ts(10,9): error TS2305: Module 'M' has no exported member 'B'. tests/cases/compiler/moduleClassArrayCodeGenTest.ts(10,11): error TS2305: Module 'M' has no exported member 'B'.
==== tests/cases/compiler/moduleClassArrayCodeGenTest.ts (1 errors) ==== ==== tests/cases/compiler/moduleClassArrayCodeGenTest.ts (1 errors) ====
@ -12,5 +12,5 @@ tests/cases/compiler/moduleClassArrayCodeGenTest.ts(10,9): error TS2305: Module
var t: M.A[] = []; var t: M.A[] = [];
var t2: M.B[] = []; var t2: M.B[] = [];
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'B'. !!! error TS2305: Module 'M' has no exported member 'B'.

View file

@ -1,11 +1,14 @@
tests/cases/compiler/moduleImport.ts(2,2): error TS2305: Module 'X' has no exported member 'Y'. tests/cases/compiler/moduleImport.ts(2,17): error TS2305: Module 'X' has no exported member 'Y'.
tests/cases/compiler/moduleImport.ts(2,17): error TS2339: Property 'Y' does not exist on type 'typeof X'.
==== tests/cases/compiler/moduleImport.ts (1 errors) ==== ==== tests/cases/compiler/moduleImport.ts (2 errors) ====
module A.B.C { module A.B.C {
import XYZ = X.Y.Z; import XYZ = X.Y.Z;
~~~~~~~~~~~~~~~~~~~ ~
!!! error TS2305: Module 'X' has no exported member 'Y'. !!! error TS2305: Module 'X' has no exported member 'Y'.
~
!!! error TS2339: Property 'Y' does not exist on type 'typeof X'.
export function ping(x: number) { export function ping(x: number) {
if (x>0) XYZ.pong (x-1); if (x>0) XYZ.pong (x-1);
} }

View file

@ -1,4 +1,4 @@
tests/cases/compiler/moduleNewExportBug.ts(10,9): error TS2305: Module 'mod1' has no exported member 'C'. tests/cases/compiler/moduleNewExportBug.ts(10,14): error TS2305: Module 'mod1' has no exported member 'C'.
==== tests/cases/compiler/moduleNewExportBug.ts (1 errors) ==== ==== tests/cases/compiler/moduleNewExportBug.ts (1 errors) ====
@ -12,7 +12,7 @@ tests/cases/compiler/moduleNewExportBug.ts(10,9): error TS2305: Module 'mod1' ha
} }
var c : mod1.C; // ERROR: C should not be visible var c : mod1.C; // ERROR: C should not be visible
~~~~~~ ~
!!! error TS2305: Module 'mod1' has no exported member 'C'. !!! error TS2305: Module 'mod1' has no exported member 'C'.

View file

@ -1,7 +1,7 @@
tests/cases/compiler/moduleVisibilityTest2.ts(57,17): error TS2304: Cannot find name 'x'. tests/cases/compiler/moduleVisibilityTest2.ts(57,17): error TS2304: Cannot find name 'x'.
tests/cases/compiler/moduleVisibilityTest2.ts(58,21): error TS2339: Property 'E' does not exist on type 'typeof M'. tests/cases/compiler/moduleVisibilityTest2.ts(58,21): error TS2339: Property 'E' does not exist on type 'typeof M'.
tests/cases/compiler/moduleVisibilityTest2.ts(61,14): error TS2305: Module 'M' has no exported member 'I'. tests/cases/compiler/moduleVisibilityTest2.ts(61,16): error TS2305: Module 'M' has no exported member 'I'.
tests/cases/compiler/moduleVisibilityTest2.ts(61,21): error TS2305: Module 'M' has no exported member 'I'. tests/cases/compiler/moduleVisibilityTest2.ts(61,23): error TS2305: Module 'M' has no exported member 'I'.
tests/cases/compiler/moduleVisibilityTest2.ts(64,11): error TS2339: Property 'x' does not exist on type 'typeof M'. tests/cases/compiler/moduleVisibilityTest2.ts(64,11): error TS2339: Property 'x' does not exist on type 'typeof M'.
tests/cases/compiler/moduleVisibilityTest2.ts(65,15): error TS2339: Property 'E' does not exist on type 'typeof M'. tests/cases/compiler/moduleVisibilityTest2.ts(65,15): error TS2339: Property 'E' does not exist on type 'typeof M'.
@ -72,9 +72,9 @@ tests/cases/compiler/moduleVisibilityTest2.ts(65,15): error TS2339: Property 'E'
} }
var cprime : M.I = <M.I>null; var cprime : M.I = <M.I>null;
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'I'. !!! error TS2305: Module 'M' has no exported member 'I'.
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'I'. !!! error TS2305: Module 'M' has no exported member 'I'.
var c = new M.C(); var c = new M.C();

View file

@ -1,6 +1,6 @@
tests/cases/compiler/moduleVisibilityTest3.ts(20,22): error TS2304: Cannot find name 'modes'. tests/cases/compiler/moduleVisibilityTest3.ts(20,22): error TS2304: Cannot find name 'modes'.
tests/cases/compiler/moduleVisibilityTest3.ts(20,33): error TS2305: Module '_modes' has no exported member 'Mode'. tests/cases/compiler/moduleVisibilityTest3.ts(20,39): error TS2305: Module '_modes' has no exported member 'Mode'.
tests/cases/compiler/moduleVisibilityTest3.ts(21,16): error TS2305: Module '_modes' has no exported member 'Mode'. tests/cases/compiler/moduleVisibilityTest3.ts(21,22): error TS2305: Module '_modes' has no exported member 'Mode'.
==== tests/cases/compiler/moduleVisibilityTest3.ts (3 errors) ==== ==== tests/cases/compiler/moduleVisibilityTest3.ts (3 errors) ====
@ -26,10 +26,10 @@ tests/cases/compiler/moduleVisibilityTest3.ts(21,16): error TS2305: Module '_mod
constructor(p1: modes, p2: modes.Mode) {// should be an error on p2 - it's not exported constructor(p1: modes, p2: modes.Mode) {// should be an error on p2 - it's not exported
~~~~~ ~~~~~
!!! error TS2304: Cannot find name 'modes'. !!! error TS2304: Cannot find name 'modes'.
~~~~~~~~~~ ~~~~
!!! error TS2305: Module '_modes' has no exported member 'Mode'. !!! error TS2305: Module '_modes' has no exported member 'Mode'.
var x:modes.Mode; var x:modes.Mode;
~~~~~~~~~~ ~~~~
!!! error TS2305: Module '_modes' has no exported member 'Mode'. !!! error TS2305: Module '_modes' has no exported member 'Mode'.
} }

View file

@ -1,5 +1,5 @@
tests/cases/compiler/multipleExportAssignments.ts(13,1): error TS2308: A module cannot have more than one export assignment. tests/cases/compiler/multipleExportAssignments.ts(13,1): error TS2300: Duplicate identifier 'default'.
tests/cases/compiler/multipleExportAssignments.ts(14,1): error TS2308: A module cannot have more than one export assignment. tests/cases/compiler/multipleExportAssignments.ts(14,1): error TS2300: Duplicate identifier 'default'.
==== tests/cases/compiler/multipleExportAssignments.ts (2 errors) ==== ==== tests/cases/compiler/multipleExportAssignments.ts (2 errors) ====
@ -17,9 +17,9 @@ tests/cases/compiler/multipleExportAssignments.ts(14,1): error TS2308: A module
}; };
export = server; export = server;
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
export = connectExport; export = connectExport;
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.

View file

@ -1,5 +1,5 @@
tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts(4,5): error TS2308: A module cannot have more than one export assignment. tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts(4,5): error TS2300: Duplicate identifier 'default'.
tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts(5,5): error TS2308: A module cannot have more than one export assignment. tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts(5,5): error TS2300: Duplicate identifier 'default'.
==== tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts (2 errors) ==== ==== tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts (2 errors) ====
@ -8,8 +8,8 @@ tests/cases/compiler/multipleExportAssignmentsInAmbientDeclaration.ts(5,5): erro
var b: number; var b: number;
export = a; export = a;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
export = b; export = b;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2308: A module cannot have more than one export assignment. !!! error TS2300: Duplicate identifier 'default'.
} }

View file

@ -1,10 +1,10 @@
tests/cases/conformance/parser/ecmascript5/RegressionTests/parser519458.ts(1,1): error TS2304: Cannot find name 'module'. tests/cases/conformance/parser/ecmascript5/RegressionTests/parser519458.ts(1,15): error TS2304: Cannot find name 'module'.
tests/cases/conformance/parser/ecmascript5/RegressionTests/parser519458.ts(1,21): error TS1005: ';' expected. tests/cases/conformance/parser/ecmascript5/RegressionTests/parser519458.ts(1,21): error TS1005: ';' expected.
==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser519458.ts (2 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser519458.ts (2 errors) ====
import rect = module("rect"); var bar = new rect.Rect(); import rect = module("rect"); var bar = new rect.Rect();
~~~~~~~~~~~~~~~~~~~~ ~~~~~~
!!! error TS2304: Cannot find name 'module'. !!! error TS2304: Cannot find name 'module'.
~ ~
!!! error TS1005: ';' expected. !!! error TS1005: ';' expected.

View file

@ -1,10 +1,10 @@
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts(1,1): error TS2304: Cannot find name 'foo'. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts(1,10): error TS2304: Cannot find name 'foo'.
==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts (2 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment1.ts (2 errors) ====
export = foo export = foo
~~~~~~~~~~~~ ~~~~~~~~~~~~
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided. !!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
~~~~~~~~~~~~ ~~~
!!! error TS2304: Cannot find name 'foo'. !!! error TS2304: Cannot find name 'foo'.

View file

@ -1,10 +1,10 @@
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts(1,1): error TS2304: Cannot find name 'foo'. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts(1,10): error TS2304: Cannot find name 'foo'.
==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts (2 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment2.ts (2 errors) ====
export = foo; export = foo;
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided. !!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
~~~~~~~~~~~~~ ~~~
!!! error TS2304: Cannot find name 'foo'. !!! error TS2304: Cannot find name 'foo'.

View file

@ -2,4 +2,3 @@
export = export =
//// [parserExportAssignment3.js] //// [parserExportAssignment3.js]
module.exports = ;

View file

@ -2,4 +2,3 @@
export = ; export = ;
//// [parserExportAssignment4.js] //// [parserExportAssignment4.js]
module.exports = ;

View file

@ -1,9 +1,9 @@
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment6.ts(2,5): error TS2304: Cannot find name 'A'. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment6.ts(2,14): error TS2304: Cannot find name 'A'.
==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment6.ts (1 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment6.ts (1 errors) ====
declare module "M" { declare module "M" {
export = A; export = A;
~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'A'. !!! error TS2304: Cannot find name 'A'.
} }

View file

@ -1,6 +1,6 @@
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(1,14): error TS1148: Cannot compile external modules unless the '--module' flag is provided. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(1,14): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(4,1): error TS2304: Cannot find name 'B'.
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(4,1): error TS2309: An export assignment cannot be used in a module with other exported elements. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(4,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts(4,10): error TS2304: Cannot find name 'B'.
==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts (3 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment7.ts (3 errors) ====
@ -11,6 +11,6 @@ tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignm
export = B; export = B;
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2304: Cannot find name 'B'. !!! error TS2309: An export assignment cannot be used in a module with other exported elements.
~~~~~~~~~~~ ~
!!! error TS2309: An export assignment cannot be used in a module with other exported elements. !!! error TS2304: Cannot find name 'B'.

View file

@ -1,6 +1,6 @@
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,1): error TS2304: Cannot find name 'B'.
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,1): error TS2309: An export assignment cannot be used in a module with other exported elements. tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,1): error TS2309: An export assignment cannot be used in a module with other exported elements.
tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts(1,10): error TS2304: Cannot find name 'B'.
==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts (3 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignment8.ts (3 errors) ====
@ -8,9 +8,9 @@ tests/cases/conformance/parser/ecmascript5/ExportAssignments/parserExportAssignm
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided. !!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2304: Cannot find name 'B'.
~~~~~~~~~~~
!!! error TS2309: An export assignment cannot be used in a module with other exported elements. !!! error TS2309: An export assignment cannot be used in a module with other exported elements.
~
!!! error TS2304: Cannot find name 'B'.
export class C { export class C {
} }

View file

@ -6,6 +6,6 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint2.ts(
class C<T extends List<T> > { class C<T extends List<T> > {
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. !!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
~~~~~~~ ~~~~
!!! error TS2304: Cannot find name 'List'. !!! error TS2304: Cannot find name 'List'.
} }

View file

@ -6,6 +6,6 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint3.ts(
class C<T extends List<T>> { class C<T extends List<T>> {
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. !!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
~~~~~~~ ~~~~
!!! error TS2304: Cannot find name 'List'. !!! error TS2304: Cannot find name 'List'.
} }

View file

@ -6,6 +6,6 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint4.ts(
class C<T extends List<List<T> > > { class C<T extends List<List<T> > > {
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. !!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
~~~~~~~~~~~~~~ ~~~~
!!! error TS2304: Cannot find name 'List'. !!! error TS2304: Cannot find name 'List'.
} }

View file

@ -6,6 +6,6 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint5.ts(
class C<T extends List<List<T>> > { class C<T extends List<List<T>> > {
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. !!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
~~~~~~~~~~~~~ ~~~~
!!! error TS2304: Cannot find name 'List'. !!! error TS2304: Cannot find name 'List'.
} }

View file

@ -6,6 +6,6 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint6.ts(
class C<T extends List<List<T> >> { class C<T extends List<List<T> >> {
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. !!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
~~~~~~~~~~~~~~ ~~~~
!!! error TS2304: Cannot find name 'List'. !!! error TS2304: Cannot find name 'List'.
} }

View file

@ -6,6 +6,6 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint7.ts(
class C<T extends List<List<T>>> { class C<T extends List<List<T>>> {
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list. !!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
~~~~~~~~~~~~~ ~~~~
!!! error TS2304: Cannot find name 'List'. !!! error TS2304: Cannot find name 'List'.
} }

View file

@ -4,7 +4,7 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInInterfaceDec
==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInInterfaceDeclaration1.ts (1 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInInterfaceDeclaration1.ts (1 errors) ====
interface I<T> { interface I<T> {
v: A<T>; v: A<T>;
~~~~ ~
!!! error TS2304: Cannot find name 'A'. !!! error TS2304: Cannot find name 'A'.
f1<T>(): T; f1<T>(): T;
f2?<T>(): T; f2?<T>(): T;

View file

@ -12,9 +12,9 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts
==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts1.ts (10 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts1.ts (10 errors) ====
class C extends A<T> implements B<T> { class C extends A<T> implements B<T> {
~~~~ ~
!!! error TS2304: Cannot find name 'A'. !!! error TS2304: Cannot find name 'A'.
~~~~ ~
!!! error TS2304: Cannot find name 'B'. !!! error TS2304: Cannot find name 'B'.
} }
@ -22,26 +22,26 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts
~~~~ ~~~~
!!! error TS2315: Type 'C' is not generic. !!! error TS2315: Type 'C' is not generic.
var v2: D<T> = null; var v2: D<T> = null;
~~~~ ~
!!! error TS2304: Cannot find name 'D'. !!! error TS2304: Cannot find name 'D'.
var v3: E.F<T>; var v3: E.F<T>;
~~~~~~ ~
!!! error TS2304: Cannot find name 'E'. !!! error TS2304: Cannot find name 'E'.
var v3: G.H.I<T>; var v3: G.H.I<T>;
~~~~~~~~ ~
!!! error TS2304: Cannot find name 'G'. !!! error TS2304: Cannot find name 'G'.
var v6: K<T>[]; var v6: K<T>[];
~~~~ ~
!!! error TS2304: Cannot find name 'K'. !!! error TS2304: Cannot find name 'K'.
function f1(a: E<T>) { function f1(a: E<T>) {
~~~~ ~
!!! error TS2304: Cannot find name 'E'. !!! error TS2304: Cannot find name 'E'.
} }
function f2(): F<T> { function f2(): F<T> {
~~~~ ~
!!! error TS2304: Cannot find name 'F'. !!! error TS2304: Cannot find name 'F'.
~~~~ ~~~~
!!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement. !!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.

View file

@ -12,9 +12,9 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts
==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts2.ts (10 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts2.ts (10 errors) ====
class C extends A<X<T>, Y<Z<T>>> implements B<X<T>, Y<Z<T>>> { class C extends A<X<T>, Y<Z<T>>> implements B<X<T>, Y<Z<T>>> {
~~~~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'A'. !!! error TS2304: Cannot find name 'A'.
~~~~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'B'. !!! error TS2304: Cannot find name 'B'.
} }
@ -22,26 +22,26 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInTypeContexts
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
!!! error TS2315: Type 'C' is not generic. !!! error TS2315: Type 'C' is not generic.
var v2: D<X<T>, Y<Z<T>>> = null; var v2: D<X<T>, Y<Z<T>>> = null;
~~~~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'D'. !!! error TS2304: Cannot find name 'D'.
var v3: E.F<X<T>, Y<Z<T>>>; var v3: E.F<X<T>, Y<Z<T>>>;
~~~~~~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'E'. !!! error TS2304: Cannot find name 'E'.
var v4: G.H.I<X<T>, Y<Z<T>>>; var v4: G.H.I<X<T>, Y<Z<T>>>;
~~~~~~~~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'G'. !!! error TS2304: Cannot find name 'G'.
var v6: K<X<T>, Y<Z<T>>>[]; var v6: K<X<T>, Y<Z<T>>>[];
~~~~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'K'. !!! error TS2304: Cannot find name 'K'.
function f1(a: E<X<T>, Y<Z<T>>>) { function f1(a: E<X<T>, Y<Z<T>>>) {
~~~~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'E'. !!! error TS2304: Cannot find name 'E'.
} }
function f2(): F<X<T>, Y<Z<T>>> { function f2(): F<X<T>, Y<Z<T>>> {
~~~~~~~~~~~~~~~~ ~
!!! error TS2304: Cannot find name 'F'. !!! error TS2304: Cannot find name 'F'.
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
!!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement. !!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value or consist of a single 'throw' statement.

View file

@ -8,22 +8,22 @@ tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInVariableDecl
==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInVariableDeclaration1.ts (6 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericsInVariableDeclaration1.ts (6 errors) ====
var v : Foo<T> = 1; var v : Foo<T> = 1;
~~~~~~ ~~~
!!! error TS2304: Cannot find name 'Foo'. !!! error TS2304: Cannot find name 'Foo'.
var v : Foo<T>= 1; var v : Foo<T>= 1;
~~~~~~ ~~~
!!! error TS2304: Cannot find name 'Foo'. !!! error TS2304: Cannot find name 'Foo'.
var v : Foo<Bar<T>> = 1; var v : Foo<Bar<T>> = 1;
~~~~~~~~~~~ ~~~
!!! error TS2304: Cannot find name 'Foo'. !!! error TS2304: Cannot find name 'Foo'.
var v : Foo<Bar<T>>= 1; var v : Foo<Bar<T>>= 1;
~~~~~~~~~~~ ~~~
!!! error TS2304: Cannot find name 'Foo'. !!! error TS2304: Cannot find name 'Foo'.
var v : Foo<Bar<Quux<T>>> = 1; var v : Foo<Bar<Quux<T>>> = 1;
~~~~~~~~~~~~~~~~~ ~~~
!!! error TS2304: Cannot find name 'Foo'. !!! error TS2304: Cannot find name 'Foo'.
var v : Foo<Bar<Quux<T>>>= 1; var v : Foo<Bar<Quux<T>>>= 1;
~~~~~~~~~~~~~~~~~ ~~~
!!! error TS2304: Cannot find name 'Foo'. !!! error TS2304: Cannot find name 'Foo'.

View file

@ -1,7 +1,7 @@
tests/cases/conformance/parser/ecmascript5/parserImportDeclaration1.ts(1,1): error TS2304: Cannot find name 'TypeScriptServices'. tests/cases/conformance/parser/ecmascript5/parserImportDeclaration1.ts(1,21): error TS2304: Cannot find name 'TypeScriptServices'.
==== tests/cases/conformance/parser/ecmascript5/parserImportDeclaration1.ts (1 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/parserImportDeclaration1.ts (1 errors) ====
import TypeScript = TypeScriptServices.TypeScript; import TypeScript = TypeScriptServices.TypeScript;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScriptServices'. !!! error TS2304: Cannot find name 'TypeScriptServices'.

View file

@ -8,9 +8,9 @@ tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpen
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts (5 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts (5 errors) ====
class C { class C {
where(filter: Iterator<T, boolean>): Query<T> { where(filter: Iterator<T, boolean>): Query<T> {
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Iterator'. !!! error TS2304: Cannot find name 'Iterator'.
~~~~~~~~ ~~~~~
!!! error TS2304: Cannot find name 'Query'. !!! error TS2304: Cannot find name 'Query'.
return fromDoWhile(test => return fromDoWhile(test =>
~~~~~~~~~~~ ~~~~~~~~~~~

View file

@ -1,30 +1,30 @@
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(4,1): error TS6053: File 'tests/cases/conformance/parser/ecmascript5/typescript.ts' not found. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(4,1): error TS6053: File 'tests/cases/conformance/parser/ecmascript5/typescript.ts' not found.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(24,22): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(24,33): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(38,23): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(38,34): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(48,26): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(48,37): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(68,28): error TS2305: Module 'TypeScript' has no exported member 'NodeType'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(68,39): error TS2305: Module 'TypeScript' has no exported member 'NodeType'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(70,35): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(70,35): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(75,21): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(75,32): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(79,21): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(79,32): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(86,36): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(86,47): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(94,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(94,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(95,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(95,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(96,20): error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(96,31): error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(103,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(103,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(104,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(104,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(105,20): error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(105,31): error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(112,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(112,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(113,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(113,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(114,20): error TS2305: Module 'TypeScript' has no exported member 'ArgDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(114,31): error TS2305: Module 'TypeScript' has no exported member 'ArgDecl'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(121,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(121,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(122,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(122,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(123,20): error TS2305: Module 'TypeScript' has no exported member 'VarDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(123,31): error TS2305: Module 'TypeScript' has no exported member 'VarDecl'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(130,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(130,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(131,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(131,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(132,20): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(132,31): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(139,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(139,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(140,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(140,56): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(141,20): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(141,31): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(148,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(148,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(149,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(149,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(156,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(156,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
@ -35,128 +35,128 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(172,65): error
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(173,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(173,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(174,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(174,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(175,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(175,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(176,20): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(176,31): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(177,20): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(177,31): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(178,20): error TS2305: Module 'TypeScript' has no exported member 'ClassDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(178,31): error TS2305: Module 'TypeScript' has no exported member 'ClassDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(185,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(185,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(186,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(186,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(191,61): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(191,61): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(192,28): error TS2339: Property 'hasFlag' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(192,28): error TS2339: Property 'hasFlag' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(192,38): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(192,49): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(192,109): error TS2339: Property 'ModuleFlags' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(192,109): error TS2339: Property 'ModuleFlags' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(197,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(197,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(198,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(198,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(199,20): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(199,31): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(200,28): error TS2339: Property 'hasFlag' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(200,28): error TS2339: Property 'hasFlag' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(200,38): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(200,49): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(200,113): error TS2339: Property 'ModuleFlags' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(200,113): error TS2339: Property 'ModuleFlags' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(205,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(205,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(206,20): error TS2305: Module 'TypeScript' has no exported member 'Script'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(206,31): error TS2305: Module 'TypeScript' has no exported member 'Script'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(211,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(211,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(212,20): error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(212,31): error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(217,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(217,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(218,20): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(218,31): error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(223,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(223,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(224,20): error TS2305: Module 'TypeScript' has no exported member 'ClassDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(224,31): error TS2305: Module 'TypeScript' has no exported member 'ClassDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(229,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(229,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(230,20): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(230,31): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(235,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(235,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(236,20): error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(236,31): error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(241,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(241,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(242,19): error TS2305: Module 'TypeScript' has no exported member 'Block'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(242,30): error TS2305: Module 'TypeScript' has no exported member 'Block'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(247,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(247,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(248,19): error TS2305: Module 'TypeScript' has no exported member 'ForStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(248,30): error TS2305: Module 'TypeScript' has no exported member 'ForStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(253,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(253,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(254,19): error TS2305: Module 'TypeScript' has no exported member 'CaseStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(254,30): error TS2305: Module 'TypeScript' has no exported member 'CaseStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(259,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(259,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(260,19): error TS2305: Module 'TypeScript' has no exported member 'Try'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(260,30): error TS2305: Module 'TypeScript' has no exported member 'Try'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(265,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(265,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(266,19): error TS2305: Module 'TypeScript' has no exported member 'Catch'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(266,30): error TS2305: Module 'TypeScript' has no exported member 'Catch'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(271,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(271,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(272,19): error TS2305: Module 'TypeScript' has no exported member 'DoWhileStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(272,30): error TS2305: Module 'TypeScript' has no exported member 'DoWhileStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(277,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(277,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(278,19): error TS2305: Module 'TypeScript' has no exported member 'WhileStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(278,30): error TS2305: Module 'TypeScript' has no exported member 'WhileStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(283,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(283,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(284,19): error TS2305: Module 'TypeScript' has no exported member 'ForInStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(284,30): error TS2305: Module 'TypeScript' has no exported member 'ForInStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(289,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(289,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(290,19): error TS2305: Module 'TypeScript' has no exported member 'WithStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(290,30): error TS2305: Module 'TypeScript' has no exported member 'WithStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(295,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(295,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(296,19): error TS2305: Module 'TypeScript' has no exported member 'Finally'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(296,30): error TS2305: Module 'TypeScript' has no exported member 'Finally'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(301,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(301,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(302,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(302,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(303,19): error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(303,30): error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(308,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(308,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(309,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(309,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(310,19): error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(310,30): error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(311,19): error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(311,30): error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(316,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(316,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(317,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(317,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(318,19): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(318,30): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(327,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(327,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(328,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(328,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(329,19): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(329,30): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(330,19): error TS2305: Module 'TypeScript' has no exported member 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(330,30): error TS2305: Module 'TypeScript' has no exported member 'ASTList'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(335,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(335,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(336,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(336,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(337,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(337,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(338,19): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(338,30): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(343,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(343,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(344,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(344,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(345,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(345,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(346,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(346,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(347,19): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(347,30): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(352,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(352,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(353,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(353,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(354,19): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(354,30): error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(359,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(359,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(360,19): error TS2305: Module 'TypeScript' has no exported member 'BinaryExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(360,30): error TS2305: Module 'TypeScript' has no exported member 'BinaryExpression'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(365,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(365,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(366,19): error TS2305: Module 'TypeScript' has no exported member 'BinaryExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(366,30): error TS2305: Module 'TypeScript' has no exported member 'BinaryExpression'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(371,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(371,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(377,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(377,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(378,19): error TS2305: Module 'TypeScript' has no exported member 'IfStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(378,30): error TS2305: Module 'TypeScript' has no exported member 'IfStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(383,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(383,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(384,19): error TS2305: Module 'TypeScript' has no exported member 'IfStatement'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(384,30): error TS2305: Module 'TypeScript' has no exported member 'IfStatement'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(393,61): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(393,61): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(394,19): error TS2305: Module 'TypeScript' has no exported member 'ASTList'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(394,30): error TS2305: Module 'TypeScript' has no exported member 'ASTList'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(399,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(399,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(400,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(400,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(401,19): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(401,30): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(406,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(406,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(407,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(407,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(408,19): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(408,30): error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(413,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(413,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(414,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(414,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(415,19): error TS2305: Module 'TypeScript' has no exported member 'CallExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(415,30): error TS2305: Module 'TypeScript' has no exported member 'CallExpression'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(420,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(420,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(421,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(421,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(422,19): error TS2305: Module 'TypeScript' has no exported member 'CallExpression'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(422,30): error TS2305: Module 'TypeScript' has no exported member 'CallExpression'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(427,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(427,65): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(428,19): error TS2305: Module 'TypeScript' has no exported member 'Block'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(428,30): error TS2305: Module 'TypeScript' has no exported member 'Block'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(432,41): error TS2305: Module 'TypeScript' has no exported member 'ASTSpan'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(432,52): error TS2305: Module 'TypeScript' has no exported member 'ASTSpan'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(462,50): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(462,61): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(463,41): error TS2305: Module 'TypeScript' has no exported member 'Comment'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(463,52): error TS2305: Module 'TypeScript' has no exported member 'Comment'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(478,34): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(478,45): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(478,58): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(478,69): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(478,82): error TS2304: Cannot find name 'IAstWalker'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(478,82): error TS2304: Cannot find name 'IAstWalker'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(489,21): error TS2304: Cannot find name 'hasFlag'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(489,21): error TS2304: Cannot find name 'hasFlag'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(490,49): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(490,49): error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(516,22): error TS2304: Cannot find name 'hasFlag'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(516,22): error TS2304: Cannot find name 'hasFlag'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(525,20): error TS2339: Property 'getAstWalkerFactory' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(525,20): error TS2339: Property 'getAstWalkerFactory' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(533,51): error TS2305: Module 'TypeScript' has no exported member 'Script'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(533,62): error TS2305: Module 'TypeScript' has no exported member 'Script'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(535,25): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(535,36): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(535,49): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(535,60): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(535,73): error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(535,84): error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(535,97): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(535,108): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(551,20): error TS2339: Property 'getAstWalkerFactory' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(551,20): error TS2339: Property 'getAstWalkerFactory' does not exist on type 'typeof TypeScript'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(558,34): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(558,45): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(558,84): error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(558,95): error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(559,34): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(559,45): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(559,58): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(559,69): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(559,82): error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(559,93): error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(565,35): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(565,46): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(565,59): error TS2305: Module 'TypeScript' has no exported member 'AST'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(565,70): error TS2305: Module 'TypeScript' has no exported member 'AST'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(565,83): error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(565,94): error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'.
tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error TS2339: Property 'getAstWalkerFactory' does not exist on type 'typeof TypeScript'. tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error TS2339: Property 'getAstWalkerFactory' does not exist on type 'typeof TypeScript'.
@ -187,7 +187,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
// //
export class AstPath { export class AstPath {
public asts: TypeScript.AST[] = []; public asts: TypeScript.AST[] = [];
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
public top: number = -1; public top: number = -1;
@ -203,7 +203,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
} }
public pop(): TypeScript.AST { public pop(): TypeScript.AST {
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
var head = this.ast(); var head = this.ast();
this.up(); this.up();
@ -215,7 +215,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
} }
public push(ast: TypeScript.AST) { public push(ast: TypeScript.AST) {
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
while (this.asts.length > this.count()) { while (this.asts.length > this.count()) {
this.asts.pop(); this.asts.pop();
@ -237,7 +237,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
} }
public nodeType(): TypeScript.NodeType { public nodeType(): TypeScript.NodeType {
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'NodeType'. !!! error TS2305: Module 'TypeScript' has no exported member 'NodeType'.
if (this.ast() == null) if (this.ast() == null)
return TypeScript.NodeType.None; return TypeScript.NodeType.None;
@ -248,13 +248,13 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
public ast() { public ast() {
return <TypeScript.AST>AstPath.reverseIndexOf(this.asts, this.asts.length - (this.top + 1)); return <TypeScript.AST>AstPath.reverseIndexOf(this.asts, this.asts.length - (this.top + 1));
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
} }
public parent() { public parent() {
return <TypeScript.AST>AstPath.reverseIndexOf(this.asts, this.asts.length - this.top); return <TypeScript.AST>AstPath.reverseIndexOf(this.asts, this.asts.length - this.top);
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
} }
@ -263,7 +263,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
} }
public get(index: number): TypeScript.AST { public get(index: number): TypeScript.AST {
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
return this.asts[index]; return this.asts[index];
} }
@ -279,7 +279,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
((<TypeScript.InterfaceDeclaration>this.parent()).name === this.ast()); ((<TypeScript.InterfaceDeclaration>this.parent()).name === this.ast());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'.
} }
@ -294,7 +294,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
((<TypeScript.InterfaceDeclaration>this.parent()).name === this.ast()); ((<TypeScript.InterfaceDeclaration>this.parent()).name === this.ast());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'.
} }
@ -309,7 +309,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
((<TypeScript.ArgDecl>this.parent()).id === this.ast()); ((<TypeScript.ArgDecl>this.parent()).id === this.ast());
~~~~~~~~~~~~~~~~~~ ~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ArgDecl'. !!! error TS2305: Module 'TypeScript' has no exported member 'ArgDecl'.
} }
@ -324,7 +324,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
((<TypeScript.VarDecl>this.parent()).id === this.ast()); ((<TypeScript.VarDecl>this.parent()).id === this.ast());
~~~~~~~~~~~~~~~~~~ ~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'VarDecl'. !!! error TS2305: Module 'TypeScript' has no exported member 'VarDecl'.
} }
@ -339,7 +339,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
((<TypeScript.ModuleDeclaration>this.parent()).name === this.ast()); ((<TypeScript.ModuleDeclaration>this.parent()).name === this.ast());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
} }
@ -354,7 +354,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
((<TypeScript.FuncDecl>this.parent()).name === this.ast()); ((<TypeScript.FuncDecl>this.parent()).name === this.ast());
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. !!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
} }
@ -411,13 +411,13 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
((<TypeScript.FuncDecl>this.asts[this.top - 2]).isConstructor) && ((<TypeScript.FuncDecl>this.asts[this.top - 2]).isConstructor) &&
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. !!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
((<TypeScript.FuncDecl>this.asts[this.top - 2]).arguments === this.asts[this.top - 1]) && ((<TypeScript.FuncDecl>this.asts[this.top - 2]).arguments === this.asts[this.top - 1]) &&
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. !!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
((<TypeScript.ClassDeclaration>this.asts[this.top - 4]).constructorDecl === this.asts[this.top - 2]); ((<TypeScript.ClassDeclaration>this.asts[this.top - 4]).constructorDecl === this.asts[this.top - 2]);
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ClassDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'ClassDeclaration'.
} }
@ -441,7 +441,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
TypeScript.hasFlag((<TypeScript.ModuleDeclaration>this.asts[this.top]).modFlags, TypeScript.ModuleFlags.IsWholeFile); TypeScript.hasFlag((<TypeScript.ModuleDeclaration>this.asts[this.top]).modFlags, TypeScript.ModuleFlags.IsWholeFile);
~~~~~~~ ~~~~~~~
!!! error TS2339: Property 'hasFlag' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'hasFlag' does not exist on type 'typeof TypeScript'.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2339: Property 'ModuleFlags' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'ModuleFlags' does not exist on type 'typeof TypeScript'.
@ -456,12 +456,12 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.ModuleDeclaration>this.asts[this.top - 1]).members == this.asts[this.top - 0] && (<TypeScript.ModuleDeclaration>this.asts[this.top - 1]).members == this.asts[this.top - 0] &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
TypeScript.hasFlag((<TypeScript.ModuleDeclaration>this.asts[this.top - 1]).modFlags, TypeScript.ModuleFlags.IsWholeFile); TypeScript.hasFlag((<TypeScript.ModuleDeclaration>this.asts[this.top - 1]).modFlags, TypeScript.ModuleFlags.IsWholeFile);
~~~~~~~ ~~~~~~~
!!! error TS2339: Property 'hasFlag' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'hasFlag' does not exist on type 'typeof TypeScript'.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2339: Property 'ModuleFlags' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'ModuleFlags' does not exist on type 'typeof TypeScript'.
@ -473,7 +473,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.Script>this.asts[this.top - 1]).bod == this.asts[this.top - 0]; (<TypeScript.Script>this.asts[this.top - 1]).bod == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~ ~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'Script'. !!! error TS2305: Module 'TypeScript' has no exported member 'Script'.
} }
@ -483,7 +483,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.SwitchStatement>this.asts[this.top - 1]).caseList == this.asts[this.top - 0]; (<TypeScript.SwitchStatement>this.asts[this.top - 1]).caseList == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'.
} }
@ -493,7 +493,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.ModuleDeclaration>this.asts[this.top - 1]).members == this.asts[this.top - 0]; (<TypeScript.ModuleDeclaration>this.asts[this.top - 1]).members == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'ModuleDeclaration'.
} }
@ -503,7 +503,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.ClassDeclaration>this.asts[this.top - 1]).members == this.asts[this.top - 0]; (<TypeScript.ClassDeclaration>this.asts[this.top - 1]).members == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ClassDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'ClassDeclaration'.
} }
@ -513,7 +513,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.FuncDecl>this.asts[this.top - 1]).bod == this.asts[this.top - 0]; (<TypeScript.FuncDecl>this.asts[this.top - 1]).bod == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. !!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
} }
@ -523,7 +523,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.InterfaceDeclaration>this.asts[this.top - 1]).members == this.asts[this.top - 0]; (<TypeScript.InterfaceDeclaration>this.asts[this.top - 1]).members == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'. !!! error TS2305: Module 'TypeScript' has no exported member 'InterfaceDeclaration'.
} }
@ -533,7 +533,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.Block>this.asts[this.top - 1]).statements == this.asts[this.top - 0]; (<TypeScript.Block>this.asts[this.top - 1]).statements == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~ ~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'Block'. !!! error TS2305: Module 'TypeScript' has no exported member 'Block'.
} }
@ -543,7 +543,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.ForStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0]; (<TypeScript.ForStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ForStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'ForStatement'.
} }
@ -553,7 +553,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.CaseStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0]; (<TypeScript.CaseStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'CaseStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'CaseStatement'.
} }
@ -563,7 +563,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.Try>this.asts[this.top - 1]).body == this.asts[this.top - 0]; (<TypeScript.Try>this.asts[this.top - 1]).body == this.asts[this.top - 0];
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'Try'. !!! error TS2305: Module 'TypeScript' has no exported member 'Try'.
} }
@ -573,7 +573,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.Catch>this.asts[this.top - 1]).body == this.asts[this.top - 0]; (<TypeScript.Catch>this.asts[this.top - 1]).body == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~ ~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'Catch'. !!! error TS2305: Module 'TypeScript' has no exported member 'Catch'.
} }
@ -583,7 +583,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.DoWhileStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0]; (<TypeScript.DoWhileStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'DoWhileStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'DoWhileStatement'.
} }
@ -593,7 +593,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.WhileStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0]; (<TypeScript.WhileStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'WhileStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'WhileStatement'.
} }
@ -603,7 +603,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.ForInStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0]; (<TypeScript.ForInStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ForInStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'ForInStatement'.
} }
@ -613,7 +613,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.WithStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0]; (<TypeScript.WithStatement>this.asts[this.top - 1]).body == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'WithStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'WithStatement'.
} }
@ -623,7 +623,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.Finally>this.asts[this.top - 1]).body == this.asts[this.top - 0]; (<TypeScript.Finally>this.asts[this.top - 1]).body == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~ ~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'Finally'. !!! error TS2305: Module 'TypeScript' has no exported member 'Finally'.
} }
@ -636,7 +636,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.SwitchStatement>this.asts[this.top - 2]).caseList == this.asts[this.top - 1]; (<TypeScript.SwitchStatement>this.asts[this.top - 2]).caseList == this.asts[this.top - 1];
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'.
} }
@ -649,10 +649,10 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.SwitchStatement>this.asts[this.top - 2]).caseList == this.asts[this.top - 1] && (<TypeScript.SwitchStatement>this.asts[this.top - 2]).caseList == this.asts[this.top - 1] &&
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'.
(<TypeScript.SwitchStatement>this.asts[this.top - 2]).defaultCase == this.asts[this.top - 0]; (<TypeScript.SwitchStatement>this.asts[this.top - 2]).defaultCase == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'SwitchStatement'.
} }
@ -665,7 +665,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.UnaryExpression>this.asts[this.top - 1]).operand == this.asts[this.top - 0]; (<TypeScript.UnaryExpression>this.asts[this.top - 1]).operand == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. !!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
} }
@ -682,10 +682,10 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.UnaryExpression>this.asts[this.top - 1]).operand == this.asts[this.top - 0] && (<TypeScript.UnaryExpression>this.asts[this.top - 1]).operand == this.asts[this.top - 0] &&
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. !!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
(<TypeScript.ASTList>this.asts[this.top - 0]).members.length == 0; (<TypeScript.ASTList>this.asts[this.top - 0]).members.length == 0;
~~~~~~~~~~~~~~~~~~ ~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ASTList'. !!! error TS2305: Module 'TypeScript' has no exported member 'ASTList'.
} }
@ -701,7 +701,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.UnaryExpression>this.asts[this.top - 2]).operand == this.asts[this.top - 1]; (<TypeScript.UnaryExpression>this.asts[this.top - 2]).operand == this.asts[this.top - 1];
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. !!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
} }
@ -720,7 +720,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.UnaryExpression>this.asts[this.top - 3]).operand == this.asts[this.top - 2]; (<TypeScript.UnaryExpression>this.asts[this.top - 3]).operand == this.asts[this.top - 2];
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. !!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
} }
@ -733,7 +733,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.UnaryExpression>this.asts[this.top - 1]).operand == this.asts[this.top - 0]; (<TypeScript.UnaryExpression>this.asts[this.top - 1]).operand == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'. !!! error TS2305: Module 'TypeScript' has no exported member 'UnaryExpression'.
} }
@ -743,7 +743,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.BinaryExpression>this.asts[this.top - 1]).operand1 === this.asts[this.top - 0]; (<TypeScript.BinaryExpression>this.asts[this.top - 1]).operand1 === this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'BinaryExpression'. !!! error TS2305: Module 'TypeScript' has no exported member 'BinaryExpression'.
} }
@ -753,7 +753,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.BinaryExpression>this.asts[this.top - 1]).operand2 === this.asts[this.top - 0]; (<TypeScript.BinaryExpression>this.asts[this.top - 1]).operand2 === this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'BinaryExpression'. !!! error TS2305: Module 'TypeScript' has no exported member 'BinaryExpression'.
} }
@ -771,7 +771,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.IfStatement>this.asts[this.top - 1]).thenBod == this.asts[this.top - 0]; (<TypeScript.IfStatement>this.asts[this.top - 1]).thenBod == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'IfStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'IfStatement'.
} }
@ -781,7 +781,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.IfStatement>this.asts[this.top - 1]).elseBod == this.asts[this.top - 0]; (<TypeScript.IfStatement>this.asts[this.top - 1]).elseBod == this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'IfStatement'. !!! error TS2305: Module 'TypeScript' has no exported member 'IfStatement'.
} }
@ -795,7 +795,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.ASTList>this.asts[this.top]).members.length === 1; (<TypeScript.ASTList>this.asts[this.top]).members.length === 1;
~~~~~~~~~~~~~~~~~~ ~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ASTList'. !!! error TS2305: Module 'TypeScript' has no exported member 'ASTList'.
} }
@ -808,7 +808,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.FuncDecl>this.asts[this.top - 1]).arguments === this.asts[this.top - 0]; (<TypeScript.FuncDecl>this.asts[this.top - 1]).arguments === this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. !!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
} }
@ -821,7 +821,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.FuncDecl>this.asts[this.top - 2]).arguments === this.asts[this.top - 1]; (<TypeScript.FuncDecl>this.asts[this.top - 2]).arguments === this.asts[this.top - 1];
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'. !!! error TS2305: Module 'TypeScript' has no exported member 'FuncDecl'.
} }
@ -834,7 +834,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.CallExpression>this.asts[this.top - 1]).arguments === this.asts[this.top - 0]; (<TypeScript.CallExpression>this.asts[this.top - 1]).arguments === this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'CallExpression'. !!! error TS2305: Module 'TypeScript' has no exported member 'CallExpression'.
} }
@ -847,7 +847,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.CallExpression>this.asts[this.top - 1]).arguments === this.asts[this.top - 0]; (<TypeScript.CallExpression>this.asts[this.top - 1]).arguments === this.asts[this.top - 0];
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'CallExpression'. !!! error TS2305: Module 'TypeScript' has no exported member 'CallExpression'.
} }
@ -857,13 +857,13 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
~~~~~~~~ ~~~~~~~~
!!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'. !!! error TS2339: Property 'NodeType' does not exist on type 'typeof TypeScript'.
(<TypeScript.Block>this.asts[this.top - 0]).isStatementBlock === false; (<TypeScript.Block>this.asts[this.top - 0]).isStatementBlock === false;
~~~~~~~~~~~~~~~~ ~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'Block'. !!! error TS2305: Module 'TypeScript' has no exported member 'Block'.
} }
} }
export function isValidAstNode(ast: TypeScript.ASTSpan): boolean { export function isValidAstNode(ast: TypeScript.ASTSpan): boolean {
~~~~~~~~~~~~~~~~~~ ~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'ASTSpan'. !!! error TS2305: Module 'TypeScript' has no exported member 'ASTSpan'.
if (ast === null) if (ast === null)
return false; return false;
@ -895,10 +895,10 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
/// Return the stack of AST nodes containing "position" /// Return the stack of AST nodes containing "position"
/// ///
export function getAstPathToPosition(script: TypeScript.AST, pos: number, options = GetAstPathOptions.Default): TypeScript.AstPath { export function getAstPathToPosition(script: TypeScript.AST, pos: number, options = GetAstPathOptions.Default): TypeScript.AstPath {
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
var lookInComments = (comments: TypeScript.Comment[]) => { var lookInComments = (comments: TypeScript.Comment[]) => {
~~~~~~~~~~~~~~~~~~ ~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'Comment'. !!! error TS2305: Module 'TypeScript' has no exported member 'Comment'.
if (comments && comments.length > 0) { if (comments && comments.length > 0) {
for (var i = 0; i < comments.length; i++) { for (var i = 0; i < comments.length; i++) {
@ -915,9 +915,9 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
} }
var pre = function (cur: TypeScript.AST, parent: TypeScript.AST, walker: IAstWalker) { var pre = function (cur: TypeScript.AST, parent: TypeScript.AST, walker: IAstWalker) {
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'IAstWalker'. !!! error TS2304: Cannot find name 'IAstWalker'.
@ -984,17 +984,17 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
// This is used when "position" might be inside a comment or string, etc. // This is used when "position" might be inside a comment or string, etc.
// //
export function getTokenizationOffset(script: TypeScript.Script, position: number): number { export function getTokenizationOffset(script: TypeScript.Script, position: number): number {
~~~~~~~~~~~~~~~~~ ~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'Script'. !!! error TS2305: Module 'TypeScript' has no exported member 'Script'.
var bestOffset = 0; var bestOffset = 0;
var pre = (cur: TypeScript.AST, parent: TypeScript.AST, walker: TypeScript.IAstWalker): TypeScript.AST => { var pre = (cur: TypeScript.AST, parent: TypeScript.AST, walker: TypeScript.IAstWalker): TypeScript.AST => {
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'. !!! error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'.
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
if (TypeScript.isValidAstNode(cur)) { if (TypeScript.isValidAstNode(cur)) {
// Did we find a closer offset? // Did we find a closer offset?
@ -1021,16 +1021,16 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
/// Simple function to Walk an AST using a simple callback function. /// Simple function to Walk an AST using a simple callback function.
/// ///
export function walkAST(ast: TypeScript.AST, callback: (path: AstPath, walker: TypeScript.IAstWalker) => void ): void { export function walkAST(ast: TypeScript.AST, callback: (path: AstPath, walker: TypeScript.IAstWalker) => void ): void {
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'. !!! error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'.
var pre = function (cur: TypeScript.AST, parent: TypeScript.AST, walker: TypeScript.IAstWalker) { var pre = function (cur: TypeScript.AST, parent: TypeScript.AST, walker: TypeScript.IAstWalker) {
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'. !!! error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'.
var path: TypeScript.AstPath = walker.state; var path: TypeScript.AstPath = walker.state;
path.push(cur); path.push(cur);
@ -1038,11 +1038,11 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource14.ts(572,20): error
return cur; return cur;
} }
var post = function (cur: TypeScript.AST, parent: TypeScript.AST, walker: TypeScript.IAstWalker) { var post = function (cur: TypeScript.AST, parent: TypeScript.AST, walker: TypeScript.IAstWalker) {
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
~~~~~~~~~~~~~~ ~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'AST'. !!! error TS2305: Module 'TypeScript' has no exported member 'AST'.
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'. !!! error TS2305: Module 'TypeScript' has no exported member 'IAstWalker'.
var path: TypeScript.AstPath = walker.state; var path: TypeScript.AstPath = walker.state;
path.pop(); path.pop();

View file

@ -5,7 +5,7 @@ tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens20.t
==== tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens20.ts (3 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens20.ts (3 errors) ====
var v: X<T \ var v: X<T \
~~~~~ ~
!!! error TS2304: Cannot find name 'X'. !!! error TS2304: Cannot find name 'X'.
!!! error TS1127: Invalid character. !!! error TS1127: Invalid character.

View file

@ -6,10 +6,9 @@ tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnfinishedTypeNam
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnfinishedTypeNameBeforeKeyword1.ts (4 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnfinishedTypeNameBeforeKeyword1.ts (4 errors) ====
var x: TypeModule1. var x: TypeModule1.
~~~~~~~~~~~~ ~~~~~~~~~~~
module TypeModule2 {
~~~~~~
!!! error TS2304: Cannot find name 'TypeModule1'. !!! error TS2304: Cannot find name 'TypeModule1'.
module TypeModule2 {
~~~~~~~~~~~ ~~~~~~~~~~~
!!! error TS1005: '=' expected. !!! error TS1005: '=' expected.
~~~~~~~~~~~ ~~~~~~~~~~~

View file

@ -6,9 +6,9 @@ tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnterminatedGener
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnterminatedGeneric1.ts (3 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnterminatedGeneric1.ts (3 errors) ====
interface IQService { interface IQService {
all(promises: IPromise < any > []): IPromise< all(promises: IPromise < any > []): IPromise<
~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'IPromise'. !!! error TS2304: Cannot find name 'IPromise'.
~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'IPromise'. !!! error TS2304: Cannot find name 'IPromise'.
!!! error TS1005: '>' expected. !!! error TS1005: '>' expected.

View file

@ -48,9 +48,9 @@ tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnterminatedGener
interface IQService { interface IQService {
all(promises: IPromise < any > []): IPromise< all(promises: IPromise < any > []): IPromise<
~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'IPromise'. !!! error TS2304: Cannot find name 'IPromise'.
~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'IPromise'. !!! error TS2304: Cannot find name 'IPromise'.
!!! error TS1005: '>' expected. !!! error TS1005: '>' expected.

View file

@ -13,7 +13,7 @@ tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDe
~~~~~~~ ~~~~~~~
!!! error TS2304: Cannot find name 'Harness'. !!! error TS2304: Cannot find name 'Harness'.
, compiler = <TypeScript.TypeScriptCompiler>new TypeScript.TypeScriptCompiler(outerr) , compiler = <TypeScript.TypeScriptCompiler>new TypeScript.TypeScriptCompiler(outerr)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.

View file

@ -2,7 +2,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(16,1): err
tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(17,1): error TS6053: File 'tests/cases/conformance/parser/ecmascript5/compiler/typescript.ts' not found. tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(17,1): error TS6053: File 'tests/cases/conformance/parser/ecmascript5/compiler/typescript.ts' not found.
tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(18,1): error TS6053: File 'tests/cases/conformance/parser/ecmascript5/services/typescriptServices.ts' not found. tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(18,1): error TS6053: File 'tests/cases/conformance/parser/ecmascript5/services/typescriptServices.ts' not found.
tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(19,1): error TS6053: File 'tests/cases/conformance/parser/ecmascript5/RealWorld/diff.ts' not found. tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(19,1): error TS6053: File 'tests/cases/conformance/parser/ecmascript5/RealWorld/diff.ts' not found.
tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(21,21): error TS2305: Module 'Harness' has no exported member 'Assert'. tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(21,29): error TS2305: Module 'Harness' has no exported member 'Assert'.
tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(25,17): error TS2304: Cannot find name 'IIO'. tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(25,17): error TS2304: Cannot find name 'IIO'.
tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(41,12): error TS2304: Cannot find name 'ActiveXObject'. tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(41,12): error TS2304: Cannot find name 'ActiveXObject'.
tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(43,19): error TS2304: Cannot find name 'require'. tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(43,19): error TS2304: Cannot find name 'require'.
@ -140,7 +140,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
!!! error TS6053: File 'diff.ts' not found. !!! error TS6053: File 'diff.ts' not found.
declare var assert: Harness.Assert; declare var assert: Harness.Assert;
~~~~~~~~~~~~~~ ~~~~~~
!!! error TS2305: Module 'Harness' has no exported member 'Assert'. !!! error TS2305: Module 'Harness' has no exported member 'Assert'.
declare var it; declare var it;
declare var describe; declare var describe;
@ -857,7 +857,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
/** Mimics having multiple files, later concatenated to a single file. */ /** Mimics having multiple files, later concatenated to a single file. */
export class EmitterIOHost implements TypeScript.EmitterIOHost { export class EmitterIOHost implements TypeScript.EmitterIOHost {
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
private fileCollection = {}; private fileCollection = {};
@ -913,7 +913,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
} }
export function makeDefaultCompilerForTest(c?: TypeScript.TypeScriptCompiler) { export function makeDefaultCompilerForTest(c?: TypeScript.TypeScriptCompiler) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
var compiler = c || new TypeScript.TypeScriptCompiler(stderr); var compiler = c || new TypeScript.TypeScriptCompiler(stderr);
~~~~~~~~~~ ~~~~~~~~~~
@ -940,7 +940,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
} }
var compiler: TypeScript.TypeScriptCompiler; var compiler: TypeScript.TypeScriptCompiler;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
recreate(); recreate();
@ -1156,7 +1156,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
@ -1174,7 +1174,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
else { else {
for (var m = 0; m < compiler.scripts.members.length; m++) { for (var m = 0; m < compiler.scripts.members.length; m++) {
var script2 = <TypeScript.Script>compiler.scripts.members[m]; var script2 = <TypeScript.Script>compiler.scripts.members[m];
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
if (script2.locationInfo.filename !== 'lib.d.ts') { if (script2.locationInfo.filename !== 'lib.d.ts') {
if (targetPosition > -1) { if (targetPosition > -1) {
@ -1218,7 +1218,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
} }
private getTypeInfoName(ast : TypeScript.AST) { private getTypeInfoName(ast : TypeScript.AST) {
~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
var name = ''; var name = '';
switch (ast.nodeType) { switch (ast.nodeType) {
@ -1262,7 +1262,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
name = (<TypeScript.RegexLiteral>ast).text; name = (<TypeScript.RegexLiteral>ast).text;
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
break; break;
case TypeScript.NodeType.QString: case TypeScript.NodeType.QString:
@ -1274,7 +1274,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
name = (<TypeScript.NumberLiteral>ast).text; name = (<TypeScript.NumberLiteral>ast).text;
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
break; break;
case TypeScript.NodeType.Return: case TypeScript.NodeType.Return:
@ -1286,30 +1286,30 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
name = (<TypeScript.InterfaceDeclaration>ast).name.actualText; name = (<TypeScript.InterfaceDeclaration>ast).name.actualText;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
break; break;
case TypeScript.NodeType.ModuleDeclaration: case TypeScript.NodeType.ModuleDeclaration:
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
name = (<TypeScript.ModuleDeclaration>ast).name.actualText; name = (<TypeScript.ModuleDeclaration>ast).name.actualText;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
break; break;
case TypeScript.NodeType.ClassDeclaration: case TypeScript.NodeType.ClassDeclaration:
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
name = (<TypeScript.ClassDeclaration>ast).name.actualText; name = (<TypeScript.ClassDeclaration>ast).name.actualText;
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
break; break;
case TypeScript.NodeType.FuncDecl: case TypeScript.NodeType.FuncDecl:
~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
name = !(<TypeScript.FuncDecl>ast).name ? "" : (<TypeScript.FuncDecl>ast).name.actualText; // name == null for lambdas name = !(<TypeScript.FuncDecl>ast).name ? "" : (<TypeScript.FuncDecl>ast).name.actualText; // name == null for lambdas
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
break; break;
default: default:
@ -1338,7 +1338,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
* @param references the set of referenced files used by the given code * @param references the set of referenced files used by the given code
*/ */
export function generateDeclFile(code: string, verifyNoDeclFile: boolean, unitName?: string, compilationContext?: Harness.Compiler.CompilationContext, references?: TypeScript.IFileReference[]): string { export function generateDeclFile(code: string, verifyNoDeclFile: boolean, unitName?: string, compilationContext?: Harness.Compiler.CompilationContext, references?: TypeScript.IFileReference[]): string {
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
reset(); reset();
@ -1409,7 +1409,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
/** @param fileResults an array of strings for the filename and an ITextWriter with its code */ /** @param fileResults an array of strings for the filename and an ITextWriter with its code */
constructor(public fileResults: { filename: string; file: WriterAggregator; }[], errorLines: string[], public scripts: TypeScript.Script[]) { constructor(public fileResults: { filename: string; file: WriterAggregator; }[], errorLines: string[], public scripts: TypeScript.Script[]) {
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
var lines = []; var lines = [];
fileResults.forEach(v => lines = lines.concat(v.file.lines)); fileResults.forEach(v => lines = lines.concat(v.file.lines));
@ -1493,10 +1493,10 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
} }
export function addUnit(code: string, unitName?: string, isResident?: boolean, isDeclareFile?: boolean, references?: TypeScript.IFileReference[]) { export function addUnit(code: string, unitName?: string, isResident?: boolean, isDeclareFile?: boolean, references?: TypeScript.IFileReference[]) {
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
var script: TypeScript.Script = null; var script: TypeScript.Script = null;
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
var uName = unitName || '0' + (isDeclareFile ? '.d.ts' : '.ts'); var uName = unitName || '0' + (isDeclareFile ? '.d.ts' : '.ts');
@ -1504,7 +1504,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
if (compiler.units[i].filename === uName) { if (compiler.units[i].filename === uName) {
updateUnit(code, uName); updateUnit(code, uName);
script = <TypeScript.Script>compiler.scripts.members[i]; script = <TypeScript.Script>compiler.scripts.members[i];
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
} }
} }
@ -1531,9 +1531,9 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
} }
export function compileFile(path: string, callback: (res: CompilerResult) => void , settingsCallback?: (settings?: TypeScript.CompilationSettings) => void , context?: CompilationContext, references?: TypeScript.IFileReference[]) { export function compileFile(path: string, callback: (res: CompilerResult) => void , settingsCallback?: (settings?: TypeScript.CompilationSettings) => void , context?: CompilationContext, references?: TypeScript.IFileReference[]) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
path = switchToForwardSlashes(path); path = switchToForwardSlashes(path);
var filename = path.match(/[^\/]*$/)[0]; var filename = path.match(/[^\/]*$/)[0];
@ -1543,9 +1543,9 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
} }
export function compileUnit(code: string, filename: string, callback: (res: CompilerResult) => void , settingsCallback?: (settings?: TypeScript.CompilationSettings) => void , context?: CompilationContext, references?: TypeScript.IFileReference[]) { export function compileUnit(code: string, filename: string, callback: (res: CompilerResult) => void , settingsCallback?: (settings?: TypeScript.CompilationSettings) => void , context?: CompilationContext, references?: TypeScript.IFileReference[]) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
// not recursive // not recursive
function clone/* <T> */(source: any, target: any) { function clone/* <T> */(source: any, target: any) {
@ -1603,16 +1603,16 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
} }
export function emit(ioHost: TypeScript.EmitterIOHost, usePullEmitter?: boolean) { export function emit(ioHost: TypeScript.EmitterIOHost, usePullEmitter?: boolean) {
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
compiler.emit(ioHost, usePullEmitter); compiler.emit(ioHost, usePullEmitter);
} }
export function compileString(code: string, unitName: string, callback: (res: Compiler.CompilerResult) => void , context?: CompilationContext, references?: TypeScript.IFileReference[]) { export function compileString(code: string, unitName: string, callback: (res: Compiler.CompilerResult) => void , context?: CompilationContext, references?: TypeScript.IFileReference[]) {
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
var scripts: TypeScript.Script[] = []; var scripts: TypeScript.Script[] = [];
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
reset(); reset();
@ -1695,7 +1695,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
name: string; name: string;
originalFilePath: string; originalFilePath: string;
references: TypeScript.IFileReference[]; references: TypeScript.IFileReference[];
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
} }
@ -1738,7 +1738,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
var currentFileOptions = {}; var currentFileOptions = {};
var currentFileName = null; var currentFileName = null;
var refs: TypeScript.IFileReference[] = []; var refs: TypeScript.IFileReference[] = [];
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
for (var i = 0; i < lines.length; i++) { for (var i = 0; i < lines.length; i++) {
@ -1831,7 +1831,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
export class ScriptInfo { export class ScriptInfo {
public version: number; public version: number;
public editRanges: { length: number; editRange: TypeScript.ScriptEditRange; }[] = []; public editRanges: { length: number; editRange: TypeScript.ScriptEditRange; }[] = [];
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
constructor(public name: string, public content: string, public isResident: boolean, public maxScriptVersions: number) { constructor(public name: string, public content: string, public isResident: boolean, public maxScriptVersions: number) {
@ -1869,7 +1869,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
} }
public getEditRangeSinceVersion(version: number): TypeScript.ScriptEditRange { public getEditRangeSinceVersion(version: number): TypeScript.ScriptEditRange {
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
if (this.version == version) { if (this.version == version) {
// No edits! // No edits!
@ -1897,10 +1897,10 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
} }
export class TypeScriptLS implements Services.ILanguageServiceShimHost { export class TypeScriptLS implements Services.ILanguageServiceShimHost {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
private ls: Services.ILanguageServiceShim = null; private ls: Services.ILanguageServiceShim = null;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
public scripts: ScriptInfo[] = []; public scripts: ScriptInfo[] = [];
@ -2002,7 +2002,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
* To access the non-shim (i.e. actual) language service, use the "ls.languageService" property. * To access the non-shim (i.e. actual) language service, use the "ls.languageService" property.
*/ */
public getLanguageService(): Services.ILanguageServiceShim { public getLanguageService(): Services.ILanguageServiceShim {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
var ls = new Services.TypeScriptServicesFactory().createLanguageServiceShim(this); var ls = new Services.TypeScriptServicesFactory().createLanguageServiceShim(this);
~~~~~~~~ ~~~~~~~~
@ -2014,9 +2014,9 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
/** Parse file given its source text */ /** Parse file given its source text */
public parseSourceText(fileName: string, sourceText: TypeScript.ISourceText): TypeScript.Script { public parseSourceText(fileName: string, sourceText: TypeScript.ISourceText): TypeScript.Script {
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
var parser = new TypeScript.Parser(); var parser = new TypeScript.Parser();
~~~~~~~~~~ ~~~~~~~~~~
@ -2057,7 +2057,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
* @param col 0 based index * @param col 0 based index
*/ */
public positionToZeroBasedLineCol(fileName: string, position: number): TypeScript.ILineCol { public positionToZeroBasedLineCol(fileName: string, position: number): TypeScript.ILineCol {
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
var script = this.ls.languageService.getScriptAST(fileName); var script = this.ls.languageService.getScriptAST(fileName);
assert.notNull(script); assert.notNull(script);
@ -2073,7 +2073,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
/** Verify that applying edits to sourceFileName result in the content of the file baselineFileName */ /** Verify that applying edits to sourceFileName result in the content of the file baselineFileName */
public checkEdits(sourceFileName: string, baselineFileName: string, edits: Services.TextEdit[]) { public checkEdits(sourceFileName: string, baselineFileName: string, edits: Services.TextEdit[]) {
~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
var script = readFile(sourceFileName); var script = readFile(sourceFileName);
var formattedScript = this.applyEdits(script, edits); var formattedScript = this.applyEdits(script, edits);
@ -2086,7 +2086,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
/** Apply an array of text edits to a string, and return the resulting string. */ /** Apply an array of text edits to a string, and return the resulting string. */
public applyEdits(content: string, edits: Services.TextEdit[]): string { public applyEdits(content: string, edits: Services.TextEdit[]): string {
~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
var result = content; var result = content;
edits = this.normalizeEdits(edits); edits = this.normalizeEdits(edits);
@ -2103,18 +2103,18 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts(2030,32):
/** Normalize an array of edits by removing overlapping entries and sorting entries on the minChar position. */ /** Normalize an array of edits by removing overlapping entries and sorting entries on the minChar position. */
private normalizeEdits(edits: Services.TextEdit[]): Services.TextEdit[] { private normalizeEdits(edits: Services.TextEdit[]): Services.TextEdit[] {
~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
var result: Services.TextEdit[] = []; var result: Services.TextEdit[] = [];
~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
function mapEdits(edits: Services.TextEdit[]): { edit: Services.TextEdit; index: number; }[] { function mapEdits(edits: Services.TextEdit[]): { edit: Services.TextEdit; index: number; }[] {
~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
var result = []; var result = [];
for (var i = 0; i < edits.length; i++) { for (var i = 0; i < edits.length; i++) {

View file

@ -164,7 +164,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts(736,38):
constructor( constructor(
public logger: TypeScript.ILogger, public logger: TypeScript.ILogger,
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScript'. !!! error TS2304: Cannot find name 'TypeScript'.
public tree: ParseTree, public tree: ParseTree,
~~~~~~~~~ ~~~~~~~~~
@ -174,7 +174,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts(736,38):
!!! error TS2304: Cannot find name 'ITextSnapshot'. !!! error TS2304: Cannot find name 'ITextSnapshot'.
public languageHostIndentation: string, public languageHostIndentation: string,
public editorOptions: Services.EditorOptions, public editorOptions: Services.EditorOptions,
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
public firstToken: TokenSpan, public firstToken: TokenSpan,
~~~~~~~~~ ~~~~~~~~~
@ -369,7 +369,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts(736,38):
} }
static GetIndentSizeFromIndentText(indentText: string, editorOptions: Services.EditorOptions): number { static GetIndentSizeFromIndentText(indentText: string, editorOptions: Services.EditorOptions): number {
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
return GetIndentSizeFromText(indentText, editorOptions, /*includeNonIndentChars:*/ false); return GetIndentSizeFromText(indentText, editorOptions, /*includeNonIndentChars:*/ false);
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
@ -377,7 +377,7 @@ tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts(736,38):
} }
static GetIndentSizeFromText(text: string, editorOptions: Services.EditorOptions, includeNonIndentChars: boolean): number { static GetIndentSizeFromText(text: string, editorOptions: Services.EditorOptions, includeNonIndentChars: boolean): number {
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
!!! error TS2304: Cannot find name 'Services'. !!! error TS2304: Cannot find name 'Services'.
var indentSize = 0; var indentSize = 0;

View file

@ -5,7 +5,7 @@ tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName2.ts(1,15):
==== tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName2.ts (3 errors) ==== ==== tests/cases/conformance/parser/ecmascript5/parservoidInQualifiedName2.ts (3 errors) ====
var v : x.void; var v : x.void;
~~ ~
!!! error TS2304: Cannot find name 'x'. !!! error TS2304: Cannot find name 'x'.
~~~~ ~~~~
!!! error TS1003: Identifier expected. !!! error TS1003: Identifier expected.

View file

@ -16,6 +16,6 @@ tests/cases/compiler/primaryExpressionMods.ts(11,8): error TS2304: Cannot find n
var x1 = M.a; // Used as PrimaryExpression var x1 = M.a; // Used as PrimaryExpression
var x2 = m.a; // Same as M.a var x2 = m.a; // Same as M.a
var q: m.P; // Error var q: m.P; // Error
~~~ ~
!!! error TS2304: Cannot find name 'm'. !!! error TS2304: Cannot find name 'm'.

View file

@ -12,9 +12,9 @@ interface Foo<T> {
>T : T >T : T
} }
var Foo: new () => Foo.A<Foo<string>>; var Foo: new () => Foo.A<Foo<string>>;
>Foo : new () => Foo.A<Foo<string>> >Foo : new () => default.A<Foo<string>>
>Foo : unknown >Foo : unknown
>A : Foo.A<T> >A : default.A<T>
>Foo : Foo<T> >Foo : Foo<T>
export = Foo; export = Foo;

View file

@ -21,7 +21,7 @@ test.ts(3,8): error TS2304: Cannot find name 'Array'.
/// <reference no-default-lib="true"/> /// <reference no-default-lib="true"/>
var x: Array<number>; var x: Array<number>;
~~~~~~~~~~~~~ ~~~~~
!!! error TS2304: Cannot find name 'Array'. !!! error TS2304: Cannot find name 'Array'.

View file

@ -21,7 +21,7 @@ test.ts(3,8): error TS2304: Cannot find name 'Array'.
/// <reference no-default-lib="true"/> /// <reference no-default-lib="true"/>
var x: Array<number>; var x: Array<number>;
~~~~~~~~~~~~~ ~~~~~
!!! error TS2304: Cannot find name 'Array'. !!! error TS2304: Cannot find name 'Array'.

View file

@ -4,7 +4,7 @@ tests/cases/compiler/protoAssignment.ts(2,26): error TS2304: Cannot find name 'C
==== tests/cases/compiler/protoAssignment.ts (1 errors) ==== ==== tests/cases/compiler/protoAssignment.ts (1 errors) ====
interface Number extends Comparable<number> { interface Number extends Comparable<number> {
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'Comparable'. !!! error TS2304: Cannot find name 'Comparable'.
compareTo(other: number); compareTo(other: number);

View file

@ -1,4 +1,4 @@
tests/cases/compiler/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.ts(5,20): error TS2305: Module 'Alpha' has no exported member 'x'. tests/cases/compiler/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.ts(5,26): error TS2305: Module 'Alpha' has no exported member 'x'.
==== tests/cases/compiler/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.ts (1 errors) ==== ==== tests/cases/compiler/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.ts (1 errors) ====
@ -7,6 +7,6 @@ tests/cases/compiler/qualifiedName_entity-name-resolution-does-not-affect-class-
} }
class Beta extends Alpha.x { class Beta extends Alpha.x {
~~~~~~~ ~
!!! error TS2305: Module 'Alpha' has no exported member 'x'. !!! error TS2305: Module 'Alpha' has no exported member 'x'.
} }

View file

@ -14,8 +14,7 @@ import ClassB = require("recursiveExportAssignmentAndFindAliasedType4_moduleB");
export var b: ClassB; // This should result in type ClassB export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType4_moduleC.js] //// [recursiveExportAssignmentAndFindAliasedType4_moduleC.js]
define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType4_moduleC"], function (require, exports, self) { define(["require", "exports"], function (require, exports) {
return self;
}); });
//// [recursiveExportAssignmentAndFindAliasedType4_moduleB.js] //// [recursiveExportAssignmentAndFindAliasedType4_moduleB.js]
define(["require", "exports"], function (require, exports) { define(["require", "exports"], function (require, exports) {

View file

@ -18,12 +18,10 @@ import ClassB = require("recursiveExportAssignmentAndFindAliasedType5_moduleB");
export var b: ClassB; // This should result in type ClassB export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType5_moduleD.js] //// [recursiveExportAssignmentAndFindAliasedType5_moduleD.js]
define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType5_moduleC"], function (require, exports, self) { define(["require", "exports"], function (require, exports) {
return self;
}); });
//// [recursiveExportAssignmentAndFindAliasedType5_moduleC.js] //// [recursiveExportAssignmentAndFindAliasedType5_moduleC.js]
define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType5_moduleD"], function (require, exports, self) { define(["require", "exports"], function (require, exports) {
return self;
}); });
//// [recursiveExportAssignmentAndFindAliasedType5_moduleB.js] //// [recursiveExportAssignmentAndFindAliasedType5_moduleB.js]
define(["require", "exports"], function (require, exports) { define(["require", "exports"], function (require, exports) {

View file

@ -22,16 +22,13 @@ import ClassB = require("recursiveExportAssignmentAndFindAliasedType6_moduleB");
export var b: ClassB; // This should result in type ClassB export var b: ClassB; // This should result in type ClassB
//// [recursiveExportAssignmentAndFindAliasedType6_moduleE.js] //// [recursiveExportAssignmentAndFindAliasedType6_moduleE.js]
define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType6_moduleC"], function (require, exports, self) { define(["require", "exports"], function (require, exports) {
return self;
}); });
//// [recursiveExportAssignmentAndFindAliasedType6_moduleD.js] //// [recursiveExportAssignmentAndFindAliasedType6_moduleD.js]
define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType6_moduleE"], function (require, exports, self) { define(["require", "exports"], function (require, exports) {
return self;
}); });
//// [recursiveExportAssignmentAndFindAliasedType6_moduleC.js] //// [recursiveExportAssignmentAndFindAliasedType6_moduleC.js]
define(["require", "exports", "recursiveExportAssignmentAndFindAliasedType6_moduleD"], function (require, exports, self) { define(["require", "exports"], function (require, exports) {
return self;
}); });
//// [recursiveExportAssignmentAndFindAliasedType6_moduleB.js] //// [recursiveExportAssignmentAndFindAliasedType6_moduleB.js]
define(["require", "exports"], function (require, exports) { define(["require", "exports"], function (require, exports) {

View file

@ -15,7 +15,7 @@ tests/cases/compiler/recursiveTypeComparison2.ts(13,80): error TS2304: Cannot fi
log(): Observable<T>; log(): Observable<T>;
combine<U, V>(other: Observable<U>, f: (a: T, b: U) => V): Property<V>; combine<U, V>(other: Observable<U>, f: (a: T, b: U) => V): Property<V>;
withStateMachine<U, V>(initState: U, f: (state: U, event: Event<T>) => StateValue<U, V>): EventStream<V>; withStateMachine<U, V>(initState: U, f: (state: U, event: Event<T>) => StateValue<U, V>): EventStream<V>;
~~~~~~~~~~~~~~~~ ~~~~~~~~~~
!!! error TS2304: Cannot find name 'StateValue'. !!! error TS2304: Cannot find name 'StateValue'.
decode(mapping: Object): Property<any>; decode(mapping: Object): Property<any>;
awaiting<U>(other: Observable<U>): Property<boolean>; awaiting<U>(other: Observable<U>): Property<boolean>;

View file

@ -1,7 +1,7 @@
tests/cases/conformance/scanner/ecmascript5/scannerImportDeclaration1.ts(1,1): error TS2304: Cannot find name 'TypeScriptServices'. tests/cases/conformance/scanner/ecmascript5/scannerImportDeclaration1.ts(1,21): error TS2304: Cannot find name 'TypeScriptServices'.
==== tests/cases/conformance/scanner/ecmascript5/scannerImportDeclaration1.ts (1 errors) ==== ==== tests/cases/conformance/scanner/ecmascript5/scannerImportDeclaration1.ts (1 errors) ====
import TypeScript = TypeScriptServices.TypeScript; import TypeScript = TypeScriptServices.TypeScript;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
!!! error TS2304: Cannot find name 'TypeScriptServices'. !!! error TS2304: Cannot find name 'TypeScriptServices'.

View file

@ -1,4 +1,4 @@
tests/cases/compiler/sourceMapSample.ts(14,37): error TS2305: Module 'Foo.Bar' has no exported member 'Greeter'. tests/cases/compiler/sourceMapSample.ts(14,45): error TS2305: Module 'Foo.Bar' has no exported member 'Greeter'.
==== tests/cases/compiler/sourceMapSample.ts (1 errors) ==== ==== tests/cases/compiler/sourceMapSample.ts (1 errors) ====
@ -16,7 +16,7 @@ tests/cases/compiler/sourceMapSample.ts(14,37): error TS2305: Module 'Foo.Bar' h
function foo(greeting: string): Foo.Bar.Greeter { function foo(greeting: string): Foo.Bar.Greeter {
~~~~~~~~~~~~~~~ ~~~~~~~
!!! error TS2305: Module 'Foo.Bar' has no exported member 'Greeter'. !!! error TS2305: Module 'Foo.Bar' has no exported member 'Greeter'.
return new Greeter(greeting); return new Greeter(greeting);
} }

View file

@ -1,9 +1,9 @@
tests/cases/compiler/undeclaredBase.ts(1,35): error TS2305: Module 'M' has no exported member 'I'. tests/cases/compiler/undeclaredBase.ts(1,37): error TS2305: Module 'M' has no exported member 'I'.
==== tests/cases/compiler/undeclaredBase.ts (1 errors) ==== ==== tests/cases/compiler/undeclaredBase.ts (1 errors) ====
module M { export class C extends M.I { } } module M { export class C extends M.I { } }
~~~ ~
!!! error TS2305: Module 'M' has no exported member 'I'. !!! error TS2305: Module 'M' has no exported member 'I'.

View file

@ -7,7 +7,7 @@ tests/cases/compiler/unknownSymbols2.ts(15,13): error TS2304: Cannot find name '
tests/cases/compiler/unknownSymbols2.ts(16,14): error TS2304: Cannot find name 'qwerty'. tests/cases/compiler/unknownSymbols2.ts(16,14): error TS2304: Cannot find name 'qwerty'.
tests/cases/compiler/unknownSymbols2.ts(22,19): error TS2304: Cannot find name 'asdf'. tests/cases/compiler/unknownSymbols2.ts(22,19): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols2.ts(23,32): error TS2304: Cannot find name 'qwerty'. tests/cases/compiler/unknownSymbols2.ts(23,32): error TS2304: Cannot find name 'qwerty'.
tests/cases/compiler/unknownSymbols2.ts(29,5): error TS2304: Cannot find name 'asdf'. tests/cases/compiler/unknownSymbols2.ts(29,16): error TS2304: Cannot find name 'asdf'.
==== tests/cases/compiler/unknownSymbols2.ts (10 errors) ==== ==== tests/cases/compiler/unknownSymbols2.ts (10 errors) ====
@ -58,6 +58,6 @@ tests/cases/compiler/unknownSymbols2.ts(29,5): error TS2304: Cannot find name 'a
} }
import c = N; import c = N;
import d = asdf; import d = asdf;
~~~~~~~~~~~~~~~~ ~~~~
!!! error TS2304: Cannot find name 'asdf'. !!! error TS2304: Cannot find name 'asdf'.
} }