accepted baselines

This commit is contained in:
Vladimir Matveev
2015-02-17 15:14:16 -08:00
parent 4aff9c357d
commit 40bcad994c
47 changed files with 175 additions and 176 deletions
@@ -894,6 +894,7 @@ declare module "typescript" {
isEntityNameVisible(entityName: EntityName, enclosingDeclaration: Node): SymbolVisibilityResult;
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
isUnknownIdentifier(location: Node, name: string): boolean;
getBlockScopedVariableId(node: Identifier): number;
}
const enum SymbolFlags {
FunctionScopedVariable = 1,
@@ -996,6 +997,7 @@ declare module "typescript" {
SuperStatic = 32,
ContextChecked = 64,
EnumValuesComputed = 128,
BlockScopedBindingCapturedInLoop = 256,
}
interface NodeLinks {
resolvedType?: Type;
@@ -2908,6 +2908,11 @@ declare module "typescript" {
>location : Node
>Node : Node
>name : string
getBlockScopedVariableId(node: Identifier): number;␍
>getBlockScopedVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
}␍
const enum SymbolFlags {␍
>SymbolFlags : SymbolFlags
@@ -3212,6 +3217,9 @@ declare module "typescript" {
EnumValuesComputed = 128,␍
>EnumValuesComputed : NodeCheckFlags
BlockScopedBindingCapturedInLoop = 256,␍
>BlockScopedBindingCapturedInLoop : NodeCheckFlags
}␍
interface NodeLinks {␍
>NodeLinks : NodeLinks
@@ -925,6 +925,7 @@ declare module "typescript" {
isEntityNameVisible(entityName: EntityName, enclosingDeclaration: Node): SymbolVisibilityResult;
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
isUnknownIdentifier(location: Node, name: string): boolean;
getBlockScopedVariableId(node: Identifier): number;
}
const enum SymbolFlags {
FunctionScopedVariable = 1,
@@ -1027,6 +1028,7 @@ declare module "typescript" {
SuperStatic = 32,
ContextChecked = 64,
EnumValuesComputed = 128,
BlockScopedBindingCapturedInLoop = 256,
}
interface NodeLinks {
resolvedType?: Type;
@@ -3052,6 +3052,11 @@ declare module "typescript" {
>location : Node
>Node : Node
>name : string
getBlockScopedVariableId(node: Identifier): number;
>getBlockScopedVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
}
const enum SymbolFlags {
>SymbolFlags : SymbolFlags
@@ -3356,6 +3361,9 @@ declare module "typescript" {
EnumValuesComputed = 128,
>EnumValuesComputed : NodeCheckFlags
BlockScopedBindingCapturedInLoop = 256,
>BlockScopedBindingCapturedInLoop : NodeCheckFlags
}
interface NodeLinks {
>NodeLinks : NodeLinks
@@ -926,6 +926,7 @@ declare module "typescript" {
isEntityNameVisible(entityName: EntityName, enclosingDeclaration: Node): SymbolVisibilityResult;
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
isUnknownIdentifier(location: Node, name: string): boolean;
getBlockScopedVariableId(node: Identifier): number;
}
const enum SymbolFlags {
FunctionScopedVariable = 1,
@@ -1028,6 +1029,7 @@ declare module "typescript" {
SuperStatic = 32,
ContextChecked = 64,
EnumValuesComputed = 128,
BlockScopedBindingCapturedInLoop = 256,
}
interface NodeLinks {
resolvedType?: Type;
@@ -3004,6 +3004,11 @@ declare module "typescript" {
>location : Node
>Node : Node
>name : string
getBlockScopedVariableId(node: Identifier): number;
>getBlockScopedVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
}
const enum SymbolFlags {
>SymbolFlags : SymbolFlags
@@ -3308,6 +3313,9 @@ declare module "typescript" {
EnumValuesComputed = 128,
>EnumValuesComputed : NodeCheckFlags
BlockScopedBindingCapturedInLoop = 256,
>BlockScopedBindingCapturedInLoop : NodeCheckFlags
}
interface NodeLinks {
>NodeLinks : NodeLinks
@@ -963,6 +963,7 @@ declare module "typescript" {
isEntityNameVisible(entityName: EntityName, enclosingDeclaration: Node): SymbolVisibilityResult;
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
isUnknownIdentifier(location: Node, name: string): boolean;
getBlockScopedVariableId(node: Identifier): number;
}
const enum SymbolFlags {
FunctionScopedVariable = 1,
@@ -1065,6 +1066,7 @@ declare module "typescript" {
SuperStatic = 32,
ContextChecked = 64,
EnumValuesComputed = 128,
BlockScopedBindingCapturedInLoop = 256,
}
interface NodeLinks {
resolvedType?: Type;
@@ -3177,6 +3177,11 @@ declare module "typescript" {
>location : Node
>Node : Node
>name : string
getBlockScopedVariableId(node: Identifier): number;
>getBlockScopedVariableId : (node: Identifier) => number
>node : Identifier
>Identifier : Identifier
}
const enum SymbolFlags {
>SymbolFlags : SymbolFlags
@@ -3481,6 +3486,9 @@ declare module "typescript" {
EnumValuesComputed = 128,
>EnumValuesComputed : NodeCheckFlags
BlockScopedBindingCapturedInLoop = 256,
>BlockScopedBindingCapturedInLoop : NodeCheckFlags
}
interface NodeLinks {
>NodeLinks : NodeLinks
@@ -1,7 +0,0 @@
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration10_es6.ts(1,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration10_es6.ts (1 errors) ====
let a: number = 1
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
@@ -2,4 +2,4 @@
let a: number = 1
//// [VariableDeclaration10_es6.js]
let a = 1;
var a = 1;
@@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration10_es6.ts ===
let a: number = 1
>a : number
@@ -4,4 +4,4 @@ let
//// [VariableDeclaration11_es6.js]
"use strict";
let ;
var ;
@@ -2,4 +2,4 @@
const
//// [VariableDeclaration1_es6.js]
const ;
var ;
@@ -1,10 +1,7 @@
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts(1,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts(1,7): error TS1155: 'const' declarations must be initialized
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts (2 errors) ====
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration2_es6.ts (1 errors) ====
const a
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
~
!!! error TS1155: 'const' declarations must be initialized
@@ -2,4 +2,4 @@
const a
//// [VariableDeclaration2_es6.js]
const a;
var a;
@@ -1,7 +0,0 @@
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration3_es6.ts(1,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration3_es6.ts (1 errors) ====
const a = 1
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
@@ -2,4 +2,4 @@
const a = 1
//// [VariableDeclaration3_es6.js]
const a = 1;
var a = 1;
@@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration3_es6.ts ===
const a = 1
>a : number
@@ -1,10 +1,7 @@
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration4_es6.ts(1,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration4_es6.ts(1,7): error TS1155: 'const' declarations must be initialized
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration4_es6.ts (2 errors) ====
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration4_es6.ts (1 errors) ====
const a: number
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
~
!!! error TS1155: 'const' declarations must be initialized
@@ -2,4 +2,4 @@
const a: number
//// [VariableDeclaration4_es6.js]
const a;
var a;
@@ -1,7 +0,0 @@
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration5_es6.ts(1,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration5_es6.ts (1 errors) ====
const a: number = 1
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
@@ -2,4 +2,4 @@
const a: number = 1
//// [VariableDeclaration5_es6.js]
const a = 1;
var a = 1;
@@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration5_es6.ts ===
const a: number = 1
>a : number
@@ -1,7 +0,0 @@
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration7_es6.ts(1,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration7_es6.ts (1 errors) ====
let a
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
@@ -2,4 +2,4 @@
let a
//// [VariableDeclaration7_es6.js]
let a;
var a;
@@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration7_es6.ts ===
let a
>a : any
@@ -1,7 +0,0 @@
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration8_es6.ts(1,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration8_es6.ts (1 errors) ====
let a = 1
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
@@ -2,4 +2,4 @@
let a = 1
//// [VariableDeclaration8_es6.js]
let a = 1;
var a = 1;
@@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration8_es6.ts ===
let a = 1
>a : number
@@ -1,7 +0,0 @@
tests/cases/conformance/es6/variableDeclarations/VariableDeclaration9_es6.ts(1,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration9_es6.ts (1 errors) ====
let a: number
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
@@ -2,4 +2,4 @@
let a: number
//// [VariableDeclaration9_es6.js]
let a;
var a;
@@ -0,0 +1,4 @@
=== tests/cases/conformance/es6/variableDeclarations/VariableDeclaration9_es6.ts ===
let a: number
>a : number
@@ -23,7 +23,7 @@ const c1;
const c2;
const c3, c4, c5, c6; // error, missing initialicer
// error, can not be unintalized
for (var c in {}) { }
for (const c in {}) { }
// error, assigning to a const
for (const c8 = 0; c8 < 1; c8++) { }
// error, can not be unintalized
@@ -1,17 +0,0 @@
tests/cases/compiler/constDeclarations-es5.ts(2,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/constDeclarations-es5.ts(3,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/constDeclarations-es5.ts(4,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/compiler/constDeclarations-es5.ts (3 errors) ====
const z7 = false;
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
const z8: number = 23;
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
const z9 = 0, z10 :string = "", z11 = null;
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
@@ -6,6 +6,6 @@ const z9 = 0, z10 :string = "", z11 = null;
//// [constDeclarations-es5.js]
const z7 = false;
const z8 = 23;
const z9 = 0, z10 = "", z11 = null;
var z7 = false;
var z8 = 23;
var z9 = 0, z10 = "", z11 = null;
@@ -0,0 +1,13 @@
=== tests/cases/compiler/constDeclarations-es5.ts ===
const z7 = false;
>z7 : boolean
const z8: number = 23;
>z8 : number
const z9 = 0, z10 :string = "", z11 = null;
>z9 : number
>z10 : string
>z11 : any
@@ -1,5 +1,5 @@
EmitSkipped: false
FileName : tests/cases/fourslash/inputFile1.js
// File contains early errors. All outputs should be skipped.
const uninitialized_const_error;
var uninitialized_const_error;
@@ -9,9 +9,9 @@ a;
//// [letAsIdentifierInStrictMode.js]
"use strict";
var ;
let ;
var ;
10;
var a = 10;
let ;
var ;
30;
let a;
var a;
@@ -1,27 +0,0 @@
tests/cases/compiler/letDeclarations-es5-1.ts(1,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5-1.ts(2,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5-1.ts(3,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5-1.ts(4,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5-1.ts(5,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5-1.ts(6,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/compiler/letDeclarations-es5-1.ts (6 errors) ====
let l1;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l2: number;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l3, l4, l5 :string, l6;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l7 = false;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l8: number = 23;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l9 = 0, l10 :string = "", l11 = null;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
@@ -7,9 +7,9 @@
let l9 = 0, l10 :string = "", l11 = null;
//// [letDeclarations-es5-1.js]
let l1;
let l2;
let l3, l4, l5, l6;
let l7 = false;
let l8 = 23;
let l9 = 0, l10 = "", l11 = null;
var l1;
var l2;
var l3, l4, l5, l6;
var l7 = false;
var l8 = 23;
var l9 = 0, l10 = "", l11 = null;
@@ -0,0 +1,24 @@
=== tests/cases/compiler/letDeclarations-es5-1.ts ===
let l1;
>l1 : any
let l2: number;
>l2 : number
let l3, l4, l5 :string, l6;
>l3 : any
>l4 : any
>l5 : string
>l6 : any
let l7 = false;
>l7 : boolean
let l8: number = 23;
>l8 : number
let l9 = 0, l10 :string = "", l11 = null;
>l9 : number
>l10 : string
>l11 : any
@@ -1,40 +0,0 @@
tests/cases/compiler/letDeclarations-es5.ts(2,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5.ts(3,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5.ts(4,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5.ts(6,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5.ts(7,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5.ts(8,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5.ts(10,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/letDeclarations-es5.ts(12,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/compiler/letDeclarations-es5.ts (8 errors) ====
let l1;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l2: number;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l3, l4, l5 :string, l6;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l7 = false;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l8: number = 23;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
let l9 = 0, l10 :string = "", l11 = null;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
for(let l11 in {}) { }
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
for(let l12 = 0; l12 < 9; l12++) { }
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
@@ -14,11 +14,11 @@ for(let l12 = 0; l12 < 9; l12++) { }
//// [letDeclarations-es5.js]
let l1;
let l2;
let l3, l4, l5, l6;
let l7 = false;
let l8 = 23;
let l9 = 0, l10 = "", l11 = null;
for (let l11 in {}) { }
for (let l12 = 0; l12 < 9; l12++) { }
var l1;
var l2;
var l3, l4, l5, l6;
var l7 = false;
var l8 = 23;
var l9 = 0, l10 = "", l11 = null;
for (var _l11 = void 0 in {}) { }
for (var l12 = 0; l12 < 9; l12++) { }
@@ -0,0 +1,36 @@
=== tests/cases/compiler/letDeclarations-es5.ts ===
let l1;
>l1 : any
let l2: number;
>l2 : number
let l3, l4, l5 :string, l6;
>l3 : any
>l4 : any
>l5 : string
>l6 : any
let l7 = false;
>l7 : boolean
let l8: number = 23;
>l8 : number
let l9 = 0, l10 :string = "", l11 = null;
>l9 : number
>l10 : string
>l11 : any
for(let l11 in {}) { }
>l11 : any
>{} : {}
for(let l12 = 0; l12 < 9; l12++) { }
>l12 : number
>l12 < 9 : boolean
>l12 : number
>l12++ : number
>l12 : number
@@ -7,4 +7,4 @@ var x: number[];
//// [restElementWithInitializer2.js]
var a;
var x;
x = a = a.slice(0); // Error, rest element cannot have initializer
; // Error, rest element cannot have initializer
@@ -1,14 +1,10 @@
tests/cases/compiler/shadowingViaLocalValue.ts(2,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/shadowingViaLocalValue.ts(4,13): error TS4090: Cannot initialize outer scoped variable 'x' in the same scope as block scoped declaration 'x'.
tests/cases/compiler/shadowingViaLocalValue.ts(9,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
tests/cases/compiler/shadowingViaLocalValue.ts(11,18): error TS4090: Cannot initialize outer scoped variable 'x1' in the same scope as block scoped declaration 'x1'.
==== tests/cases/compiler/shadowingViaLocalValue.ts (4 errors) ====
==== tests/cases/compiler/shadowingViaLocalValue.ts (2 errors) ====
{
let x;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
{
var x = 1;
~
@@ -18,8 +14,6 @@ tests/cases/compiler/shadowingViaLocalValue.ts(11,18): error TS4090: Cannot init
{
let x1;
~~~
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
{
for (var x1 = 0; ;);
~~
@@ -17,13 +17,13 @@
//// [shadowingViaLocalValue.js]
{
let x;
var _x = void 0;
{
var x = 1;
}
}
{
let x1;
var _x1 = void 0;
{
for (var x1 = 0;;)
;