Skip to content

Commit 8dd9b9f

Browse files
committed
Updated check and emit, updated baselines
1 parent 5b988cd commit 8dd9b9f

21 files changed

Lines changed: 175 additions & 234 deletions

src/compiler/checker.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,9 @@ module ts {
102102
let anyArrayType: Type;
103103
let globalTypedPropertyDescriptorType: ObjectType;
104104
let globalClassDecoratorType: ObjectType;
105-
let globalClassDecoratorErasedType: ObjectType;
106105
let globalParameterDecoratorType: ObjectType;
107106
let globalPropertyDecoratorType: ObjectType;
108-
let globalPropertyDecoratorErasedType: ObjectType;
109-
107+
110108
let tupleTypes: Map<TupleType> = {};
111109
let unionTypes: Map<UnionType> = {};
112110
let stringLiteralTypes: Map<StringLiteralType> = {};
@@ -11344,9 +11342,7 @@ module ts {
1134411342
globalRegExpType = getGlobalType("RegExp");
1134511343
globalTypedPropertyDescriptorType = getTypeOfGlobalSymbol(getGlobalTypeSymbol("TypedPropertyDescriptor"), 1);
1134611344
globalClassDecoratorType = getGlobalType("ClassDecorator");
11347-
globalClassDecoratorErasedType = instantiateSingleCallFunctionType(globalClassDecoratorType, [globalFunctionType]);
1134811345
globalPropertyDecoratorType = getGlobalType("PropertyDecorator");
11349-
globalPropertyDecoratorErasedType = instantiateSingleCallFunctionType(globalPropertyDecoratorType, [anyType]);
1135011346
globalParameterDecoratorType = getGlobalType("ParameterDecorator");
1135111347

1135211348
// If we're in ES6 mode, load the TemplateStringsArray.

src/compiler/emitter.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6053,7 +6053,6 @@ module ts {
60536053
var __decorate = this.__decorate || function (decorators, target, key) {
60546054
var kind = key == null ? 0 : typeof key == "number" ? 1 : 2, result = target;
60556055
if (kind == 2) result = Object.getOwnPropertyDescriptor(target, typeof key == "symbol" ? key : key = String(key));
6056-
if (kind == 2 && !result) kind = 1;
60576056
for (var i = decorators.length - 1; i >= 0; --i) {
60586057
var decorator = decorators[i];
60596058
result = (kind == 0 ? decorator(result) : kind == 1 ? decorator(target, key) : decorator(target, key, result)) || result;

tests/baselines/reference/APISample_compile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,6 @@ declare module "typescript" {
960960
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
961961
isUnknownIdentifier(location: Node, name: string): boolean;
962962
getBlockScopedVariableId(node: Identifier): number;
963-
getClassDeclarationVariableId(node: Identifier): number;
964963
}
965964
const enum SymbolFlags {
966965
FunctionScopedVariable = 1,
@@ -1455,7 +1454,6 @@ declare module "typescript" {
14551454
character: number;
14561455
};
14571456
function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter;
1458-
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
14591457
function isWhiteSpace(ch: number): boolean;
14601458
function isLineBreak(ch: number): boolean;
14611459
function isOctalDigit(ch: number): boolean;

tests/baselines/reference/APISample_compile.types

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3121,11 +3121,6 @@ declare module "typescript" {
31213121
getBlockScopedVariableId(node: Identifier): number;
31223122
>getBlockScopedVariableId : (node: Identifier) => number
31233123
>node : Identifier
3124-
>Identifier : Identifier
3125-
3126-
getClassDeclarationVariableId(node: Identifier): number;
3127-
>getClassDeclarationVariableId : (node: Identifier) => number
3128-
>node : Identifier
31293124
>Identifier : Identifier
31303125
}
31313126
const enum SymbolFlags {
@@ -4614,13 +4609,6 @@ declare module "typescript" {
46144609
>position : number
46154610
>LineAndCharacter : LineAndCharacter
46164611

4617-
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
4618-
>lineBreakBetween : (sourceFile: SourceFile, firstPos: number, secondPos: number) => boolean
4619-
>sourceFile : SourceFile
4620-
>SourceFile : SourceFile
4621-
>firstPos : number
4622-
>secondPos : number
4623-
46244612
function isWhiteSpace(ch: number): boolean;
46254613
>isWhiteSpace : (ch: number) => boolean
46264614
>ch : number

tests/baselines/reference/APISample_linter.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,6 @@ declare module "typescript" {
991991
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
992992
isUnknownIdentifier(location: Node, name: string): boolean;
993993
getBlockScopedVariableId(node: Identifier): number;
994-
getClassDeclarationVariableId(node: Identifier): number;
995994
}
996995
const enum SymbolFlags {
997996
FunctionScopedVariable = 1,
@@ -1486,7 +1485,6 @@ declare module "typescript" {
14861485
character: number;
14871486
};
14881487
function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter;
1489-
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
14901488
function isWhiteSpace(ch: number): boolean;
14911489
function isLineBreak(ch: number): boolean;
14921490
function isOctalDigit(ch: number): boolean;

tests/baselines/reference/APISample_linter.types

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3267,11 +3267,6 @@ declare module "typescript" {
32673267
getBlockScopedVariableId(node: Identifier): number;
32683268
>getBlockScopedVariableId : (node: Identifier) => number
32693269
>node : Identifier
3270-
>Identifier : Identifier
3271-
3272-
getClassDeclarationVariableId(node: Identifier): number;
3273-
>getClassDeclarationVariableId : (node: Identifier) => number
3274-
>node : Identifier
32753270
>Identifier : Identifier
32763271
}
32773272
const enum SymbolFlags {
@@ -4760,13 +4755,6 @@ declare module "typescript" {
47604755
>position : number
47614756
>LineAndCharacter : LineAndCharacter
47624757

4763-
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
4764-
>lineBreakBetween : (sourceFile: SourceFile, firstPos: number, secondPos: number) => boolean
4765-
>sourceFile : SourceFile
4766-
>SourceFile : SourceFile
4767-
>firstPos : number
4768-
>secondPos : number
4769-
47704758
function isWhiteSpace(ch: number): boolean;
47714759
>isWhiteSpace : (ch: number) => boolean
47724760
>ch : number

tests/baselines/reference/APISample_transform.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,6 @@ declare module "typescript" {
992992
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
993993
isUnknownIdentifier(location: Node, name: string): boolean;
994994
getBlockScopedVariableId(node: Identifier): number;
995-
getClassDeclarationVariableId(node: Identifier): number;
996995
}
997996
const enum SymbolFlags {
998997
FunctionScopedVariable = 1,
@@ -1487,7 +1486,6 @@ declare module "typescript" {
14871486
character: number;
14881487
};
14891488
function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter;
1490-
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
14911489
function isWhiteSpace(ch: number): boolean;
14921490
function isLineBreak(ch: number): boolean;
14931491
function isOctalDigit(ch: number): boolean;

tests/baselines/reference/APISample_transform.types

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3217,11 +3217,6 @@ declare module "typescript" {
32173217
getBlockScopedVariableId(node: Identifier): number;
32183218
>getBlockScopedVariableId : (node: Identifier) => number
32193219
>node : Identifier
3220-
>Identifier : Identifier
3221-
3222-
getClassDeclarationVariableId(node: Identifier): number;
3223-
>getClassDeclarationVariableId : (node: Identifier) => number
3224-
>node : Identifier
32253220
>Identifier : Identifier
32263221
}
32273222
const enum SymbolFlags {
@@ -4710,13 +4705,6 @@ declare module "typescript" {
47104705
>position : number
47114706
>LineAndCharacter : LineAndCharacter
47124707

4713-
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
4714-
>lineBreakBetween : (sourceFile: SourceFile, firstPos: number, secondPos: number) => boolean
4715-
>sourceFile : SourceFile
4716-
>SourceFile : SourceFile
4717-
>firstPos : number
4718-
>secondPos : number
4719-
47204708
function isWhiteSpace(ch: number): boolean;
47214709
>isWhiteSpace : (ch: number) => boolean
47224710
>ch : number

tests/baselines/reference/APISample_watcher.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,6 @@ declare module "typescript" {
10291029
getConstantValue(node: EnumMember | PropertyAccessExpression | ElementAccessExpression): number;
10301030
isUnknownIdentifier(location: Node, name: string): boolean;
10311031
getBlockScopedVariableId(node: Identifier): number;
1032-
getClassDeclarationVariableId(node: Identifier): number;
10331032
}
10341033
const enum SymbolFlags {
10351034
FunctionScopedVariable = 1,
@@ -1524,7 +1523,6 @@ declare module "typescript" {
15241523
character: number;
15251524
};
15261525
function getLineAndCharacterOfPosition(sourceFile: SourceFile, position: number): LineAndCharacter;
1527-
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
15281526
function isWhiteSpace(ch: number): boolean;
15291527
function isLineBreak(ch: number): boolean;
15301528
function isOctalDigit(ch: number): boolean;

tests/baselines/reference/APISample_watcher.types

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3390,11 +3390,6 @@ declare module "typescript" {
33903390
getBlockScopedVariableId(node: Identifier): number;
33913391
>getBlockScopedVariableId : (node: Identifier) => number
33923392
>node : Identifier
3393-
>Identifier : Identifier
3394-
3395-
getClassDeclarationVariableId(node: Identifier): number;
3396-
>getClassDeclarationVariableId : (node: Identifier) => number
3397-
>node : Identifier
33983393
>Identifier : Identifier
33993394
}
34003395
const enum SymbolFlags {
@@ -4883,13 +4878,6 @@ declare module "typescript" {
48834878
>position : number
48844879
>LineAndCharacter : LineAndCharacter
48854880

4886-
function lineBreakBetween(sourceFile: SourceFile, firstPos: number, secondPos: number): boolean;
4887-
>lineBreakBetween : (sourceFile: SourceFile, firstPos: number, secondPos: number) => boolean
4888-
>sourceFile : SourceFile
4889-
>SourceFile : SourceFile
4890-
>firstPos : number
4891-
>secondPos : number
4892-
48934881
function isWhiteSpace(ch: number): boolean;
48944882
>isWhiteSpace : (ch: number) => boolean
48954883
>ch : number

0 commit comments

Comments
 (0)