Updated baselines

This commit is contained in:
Ron Buckton 2015-03-17 13:57:58 -07:00
parent f1e8e611ab
commit 6c32a8bdb0
17 changed files with 175 additions and 40 deletions

View file

@ -4952,7 +4952,7 @@ module ts {
if (nodeOrChildIsDecorated(node)) {
if ((node.flags & NodeFlags.Default) === 0) {
write("let ");
write("var ");
emitDeclarationName(node);
write(" = ");
}
@ -5022,6 +5022,11 @@ module ts {
if (nodeOrChildIsDecorated(node)) {
writeLine();
emitDecoratorsOfClass(node);
write("return ");
emitDeclarationName(node);
write(";");
emitTempDeclarations(/*newLine*/ true);
writeLine();
tempCount = saveTempCount;
@ -5030,8 +5035,6 @@ module ts {
generatedComputedPropertyNames = saveGeneratedComputedPropertyNames;
generatedSetterNames = saveGeneratedSetterNames;
write("return ");
emitDeclarationName(node);
decreaseIndent();
writeLine();
write("})();");

View file

@ -965,6 +965,7 @@ declare module "typescript" {
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
isUnknownIdentifier(location: Node, name: string): boolean;
getBlockScopedVariableId(node: Identifier): number;
getClassDeclarationVariableId(node: Identifier): number;
}
const enum SymbolFlags {
FunctionScopedVariable = 1,
@ -1070,6 +1071,7 @@ declare module "typescript" {
ContextChecked = 64,
EnumValuesComputed = 128,
BlockScopedBindingInLoop = 256,
EmitDecorate = 512,
}
interface NodeLinks {
resolvedType?: Type;
@ -1458,6 +1460,7 @@ declare module "typescript" {
character: number;
};
function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter;
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
function isWhiteSpace(ch: number): boolean;
function isLineBreak(ch: number): boolean;
function isOctalDigit(ch: number): boolean;

View file

@ -3141,6 +3141,11 @@ declare module "typescript" {
getBlockScopedVariableId(node: Identifier): number;
>getBlockScopedVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
getClassDeclarationVariableId(node: Identifier): number;
>getClassDeclarationVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
}
const enum SymbolFlags {
@ -3455,6 +3460,9 @@ declare module "typescript" {
BlockScopedBindingInLoop = 256,
>BlockScopedBindingInLoop : NodeCheckFlags
EmitDecorate = 512,
>EmitDecorate : NodeCheckFlags
}
interface NodeLinks {
>NodeLinks : NodeLinks
@ -4626,6 +4634,13 @@ declare module "typescript" {
>position : number
>LineAndCharacter : LineAndCharacter
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
>lineBreakBetween : (sourceFile: SourceFile, firstPos: number, secondPos: number) => boolean
>sourceFile : SourceFile
>SourceFile : SourceFile
>firstPos : number
>secondPos : number
function isWhiteSpace(ch: number): boolean;
>isWhiteSpace : (ch: number) => boolean
>ch : number

View file

@ -996,6 +996,7 @@ declare module "typescript" {
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
isUnknownIdentifier(location: Node, name: string): boolean;
getBlockScopedVariableId(node: Identifier): number;
getClassDeclarationVariableId(node: Identifier): number;
}
const enum SymbolFlags {
FunctionScopedVariable = 1,
@ -1101,6 +1102,7 @@ declare module "typescript" {
ContextChecked = 64,
EnumValuesComputed = 128,
BlockScopedBindingInLoop = 256,
EmitDecorate = 512,
}
interface NodeLinks {
resolvedType?: Type;
@ -1489,6 +1491,7 @@ declare module "typescript" {
character: number;
};
function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter;
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
function isWhiteSpace(ch: number): boolean;
function isLineBreak(ch: number): boolean;
function isOctalDigit(ch: number): boolean;

View file

@ -3287,6 +3287,11 @@ declare module "typescript" {
getBlockScopedVariableId(node: Identifier): number;
>getBlockScopedVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
getClassDeclarationVariableId(node: Identifier): number;
>getClassDeclarationVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
}
const enum SymbolFlags {
@ -3601,6 +3606,9 @@ declare module "typescript" {
BlockScopedBindingInLoop = 256,
>BlockScopedBindingInLoop : NodeCheckFlags
EmitDecorate = 512,
>EmitDecorate : NodeCheckFlags
}
interface NodeLinks {
>NodeLinks : NodeLinks
@ -4772,6 +4780,13 @@ declare module "typescript" {
>position : number
>LineAndCharacter : LineAndCharacter
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
>lineBreakBetween : (sourceFile: SourceFile, firstPos: number, secondPos: number) => boolean
>sourceFile : SourceFile
>SourceFile : SourceFile
>firstPos : number
>secondPos : number
function isWhiteSpace(ch: number): boolean;
>isWhiteSpace : (ch: number) => boolean
>ch : number

View file

@ -997,6 +997,7 @@ declare module "typescript" {
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
isUnknownIdentifier(location: Node, name: string): boolean;
getBlockScopedVariableId(node: Identifier): number;
getClassDeclarationVariableId(node: Identifier): number;
}
const enum SymbolFlags {
FunctionScopedVariable = 1,
@ -1102,6 +1103,7 @@ declare module "typescript" {
ContextChecked = 64,
EnumValuesComputed = 128,
BlockScopedBindingInLoop = 256,
EmitDecorate = 512,
}
interface NodeLinks {
resolvedType?: Type;
@ -1490,6 +1492,7 @@ declare module "typescript" {
character: number;
};
function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter;
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
function isWhiteSpace(ch: number): boolean;
function isLineBreak(ch: number): boolean;
function isOctalDigit(ch: number): boolean;

View file

@ -3237,6 +3237,11 @@ declare module "typescript" {
getBlockScopedVariableId(node: Identifier): number;
>getBlockScopedVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
getClassDeclarationVariableId(node: Identifier): number;
>getClassDeclarationVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
}
const enum SymbolFlags {
@ -3551,6 +3556,9 @@ declare module "typescript" {
BlockScopedBindingInLoop = 256,
>BlockScopedBindingInLoop : NodeCheckFlags
EmitDecorate = 512,
>EmitDecorate : NodeCheckFlags
}
interface NodeLinks {
>NodeLinks : NodeLinks
@ -4722,6 +4730,13 @@ declare module "typescript" {
>position : number
>LineAndCharacter : LineAndCharacter
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
>lineBreakBetween : (sourceFile: SourceFile, firstPos: number, secondPos: number) => boolean
>sourceFile : SourceFile
>SourceFile : SourceFile
>firstPos : number
>secondPos : number
function isWhiteSpace(ch: number): boolean;
>isWhiteSpace : (ch: number) => boolean
>ch : number

View file

@ -1034,6 +1034,7 @@ declare module "typescript" {
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
isUnknownIdentifier(location: Node, name: string): boolean;
getBlockScopedVariableId(node: Identifier): number;
getClassDeclarationVariableId(node: Identifier): number;
}
const enum SymbolFlags {
FunctionScopedVariable = 1,
@ -1139,6 +1140,7 @@ declare module "typescript" {
ContextChecked = 64,
EnumValuesComputed = 128,
BlockScopedBindingInLoop = 256,
EmitDecorate = 512,
}
interface NodeLinks {
resolvedType?: Type;
@ -1527,6 +1529,7 @@ declare module "typescript" {
character: number;
};
function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter;
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
function isWhiteSpace(ch: number): boolean;
function isLineBreak(ch: number): boolean;
function isOctalDigit(ch: number): boolean;

View file

@ -3410,6 +3410,11 @@ declare module "typescript" {
getBlockScopedVariableId(node: Identifier): number;
>getBlockScopedVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
getClassDeclarationVariableId(node: Identifier): number;
>getClassDeclarationVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
}
const enum SymbolFlags {
@ -3724,6 +3729,9 @@ declare module "typescript" {
BlockScopedBindingInLoop = 256,
>BlockScopedBindingInLoop : NodeCheckFlags
EmitDecorate = 512,
>EmitDecorate : NodeCheckFlags
}
interface NodeLinks {
>NodeLinks : NodeLinks
@ -4895,6 +4903,13 @@ declare module "typescript" {
>position : number
>LineAndCharacter : LineAndCharacter
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
>lineBreakBetween : (sourceFile: SourceFile, firstPos: number, secondPos: number) => boolean
>sourceFile : SourceFile
>SourceFile : SourceFile
>firstPos : number
>secondPos : number
function isWhiteSpace(ch: number): boolean;
>isWhiteSpace : (ch: number) => boolean
>ch : number

View file

@ -19,6 +19,6 @@ var C = (function () {
_a[this.bar()] = 1,
_a)[0]] = function () {
};
var _a;
return C;
})();
var _a;

View file

@ -34,6 +34,6 @@ var C = (function (_super) {
_a[_super.bar.call(this)] = 1,
_a)[0]] = function () {
};
var _a;
return C;
})(Base);
var _a;

View file

@ -1,9 +1,21 @@
error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
error TS2318: Cannot find global type 'PropertyDecorator'.
error TS2318: Cannot find global type 'PropertyAnnotation'.
error TS2318: Cannot find global type 'ParameterAnnotation'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'ClassDecorator'.
error TS2318: Cannot find global type 'ClassAnnotation'.
error TS2318: Cannot find global type 'Boolean'.
tests/cases/compiler/noDefaultLib.ts(4,11): error TS2317: Global type 'Array' must have 1 type parameter(s).
!!! error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
!!! error TS2318: Cannot find global type 'PropertyDecorator'.
!!! error TS2318: Cannot find global type 'PropertyAnnotation'.
!!! error TS2318: Cannot find global type 'ParameterAnnotation'.
!!! error TS2318: Cannot find global type 'IArguments'.
!!! error TS2318: Cannot find global type 'ClassDecorator'.
!!! error TS2318: Cannot find global type 'ClassAnnotation'.
!!! error TS2318: Cannot find global type 'Boolean'.
==== tests/cases/compiler/noDefaultLib.ts (1 errors) ====
/// <reference no-default-lib="true"/>

View file

@ -1,21 +1,33 @@
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
error TS2318: Cannot find global type 'ParameterAnnotation'.
error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'ClassAnnotation'.
error TS2318: Cannot find global type 'String'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'PropertyDecorator'.
error TS2318: Cannot find global type 'PropertyAnnotation'.
error TS2318: Cannot find global type 'ClassDecorator'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'Array'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
!!! error TS2318: Cannot find global type 'ParameterAnnotation'.
!!! error TS2318: Cannot find global type 'Array'.
!!! error TS2318: Cannot find global type 'ClassAnnotation'.
!!! error TS2318: Cannot find global type 'String'.
!!! error TS2318: Cannot find global type 'RegExp'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'PropertyDecorator'.
!!! error TS2318: Cannot find global type 'PropertyAnnotation'.
!!! error TS2318: Cannot find global type 'ClassDecorator'.
!!! error TS2318: Cannot find global type 'Boolean'.
!!! error TS2318: Cannot find global type 'Number'.
!!! error TS2318: Cannot find global type 'IArguments'.
!!! error TS2318: Cannot find global type 'Function'.
!!! error TS2318: Cannot find global type 'Boolean'.
!!! error TS2318: Cannot find global type 'Array'.
==== tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509698.ts (0 errors) ====
/// <style requireSemi="on" />
/// <reference no-default-lib="true"/>

View file

@ -1,5 +1,5 @@
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement3.ts(2,4): error TS1127: Invalid character.
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement3.ts(5,4): error TS1127: Invalid character.
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement3.ts(6,4): error TS1109: Expression expected.
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement3.ts(7,4): error TS1127: Invalid character.
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement3.ts(7,5): error TS1005: '}' expected.
@ -12,9 +12,9 @@ tests/cases/conformance/parser/ecmascript5/ErrorRecovery/ClassElements/parserErr
class C {
}
@
!!! error TS1127: Invalid character.
enum E {
~~~~
!!! error TS1109: Expression expected.
#
!!! error TS1127: Invalid character.

View file

@ -1,22 +1,34 @@
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'ParameterAnnotation'.
error TS2318: Cannot find global type 'ClassAnnotation'.
error TS2318: Cannot find global type 'PropertyAnnotation'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
error TS2318: Cannot find global type 'String'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'PropertyDecorator'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'ClassDecorator'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'Number'.
test.ts(3,8): error TS2304: Cannot find name 'Array'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'Array'.
!!! error TS2318: Cannot find global type 'ParameterAnnotation'.
!!! error TS2318: Cannot find global type 'ClassAnnotation'.
!!! error TS2318: Cannot find global type 'PropertyAnnotation'.
!!! error TS2318: Cannot find global type 'Function'.
!!! error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
!!! error TS2318: Cannot find global type 'String'.
!!! error TS2318: Cannot find global type 'RegExp'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'Number'.
!!! error TS2318: Cannot find global type 'PropertyDecorator'.
!!! error TS2318: Cannot find global type 'IArguments'.
!!! error TS2318: Cannot find global type 'Function'.
!!! error TS2318: Cannot find global type 'ClassDecorator'.
!!! error TS2318: Cannot find global type 'Boolean'.
!!! error TS2318: Cannot find global type 'Array'.
!!! error TS2318: Cannot find global type 'Number'.
==== test.ts (1 errors) ====
/// <reference no-default-lib="true"/>

View file

@ -1,22 +1,34 @@
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'ParameterAnnotation'.
error TS2318: Cannot find global type 'ClassAnnotation'.
error TS2318: Cannot find global type 'PropertyAnnotation'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
error TS2318: Cannot find global type 'String'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'PropertyDecorator'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'ClassDecorator'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'Number'.
test.ts(3,8): error TS2304: Cannot find name 'Array'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'Array'.
!!! error TS2318: Cannot find global type 'ParameterAnnotation'.
!!! error TS2318: Cannot find global type 'ClassAnnotation'.
!!! error TS2318: Cannot find global type 'PropertyAnnotation'.
!!! error TS2318: Cannot find global type 'Function'.
!!! error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
!!! error TS2318: Cannot find global type 'String'.
!!! error TS2318: Cannot find global type 'RegExp'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'Number'.
!!! error TS2318: Cannot find global type 'PropertyDecorator'.
!!! error TS2318: Cannot find global type 'IArguments'.
!!! error TS2318: Cannot find global type 'Function'.
!!! error TS2318: Cannot find global type 'ClassDecorator'.
!!! error TS2318: Cannot find global type 'Boolean'.
!!! error TS2318: Cannot find global type 'Array'.
!!! error TS2318: Cannot find global type 'Number'.
==== test.ts (1 errors) ====
/// <reference no-default-lib="true"/>

View file

@ -1,11 +1,17 @@
error TS2318: Cannot find global type 'String'.
error TS2318: Cannot find global type 'PropertyDecorator'.
error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'ClassAnnotation'.
error TS2318: Cannot find global type 'String'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'PropertyAnnotation'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'ClassDecorator'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'ParameterAnnotation'.
tests/cases/compiler/typeCheckTypeArgument.ts(3,19): error TS2304: Cannot find name 'UNKNOWN'.
tests/cases/compiler/typeCheckTypeArgument.ts(5,26): error TS2304: Cannot find name 'UNKNOWN'.
tests/cases/compiler/typeCheckTypeArgument.ts(7,21): error TS2304: Cannot find name 'UNKNOWN'.
@ -14,14 +20,20 @@ tests/cases/compiler/typeCheckTypeArgument.ts(12,22): error TS2304: Cannot find
tests/cases/compiler/typeCheckTypeArgument.ts(15,13): error TS2304: Cannot find name 'UNKNOWN'.
!!! error TS2318: Cannot find global type 'String'.
!!! error TS2318: Cannot find global type 'PropertyDecorator'.
!!! error TS2318: Cannot find global type 'Array'.
!!! error TS2318: Cannot find global type 'IArguments'.
!!! error TS2318: Cannot find global type 'Boolean'.
!!! error TS2318: Cannot find global type 'RegExp'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'Number'.
!!! error TS2318: Cannot find global type 'ClassAnnotation'.
!!! error TS2318: Cannot find global type 'String'.
!!! error TS2318: Cannot find global type 'Function'.
!!! error TS2318: Cannot find global type 'TypedPropertyDescriptor'.
!!! error TS2318: Cannot find global type 'Number'.
!!! error TS2318: Cannot find global type 'PropertyAnnotation'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'IArguments'.
!!! error TS2318: Cannot find global type 'ClassDecorator'.
!!! error TS2318: Cannot find global type 'Boolean'.
!!! error TS2318: Cannot find global type 'ParameterAnnotation'.
==== tests/cases/compiler/typeCheckTypeArgument.ts (6 errors) ====
/// <reference no-default-lib="true"/>