Skip to content

Commit 02cd4d9

Browse files
committed
Fix reordering files when the override method is called by super class.
1 parent 851e553 commit 02cd4d9

File tree

12 files changed

+33
-39
lines changed

12 files changed

+33
-39
lines changed

lib/tsc.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var ts;
6161
(function (ts) {
6262
ts.versionMajorMinor = "3.1";
6363
ts.version = ts.versionMajorMinor + ".3";
64-
ts.version_plus = "3.1.4";
64+
ts.version_plus = "3.1.5";
6565
})(ts || (ts = {}));
6666
(function (ts) {
6767
ts.emptyArray = [];
@@ -65190,14 +65190,14 @@ var ts;
6519065190
}
6519165191
}
6519265192
function checkClassInstantiation(node) {
65193-
var superMethodNames = [];
65193+
var methodNames = [];
6519465194
var superClass = ts.getClassExtendsHeritageElement(node);
6519565195
if (superClass) {
6519665196
var type = checker.getTypeAtLocation(superClass);
6519765197
if (type && type.symbol) {
6519865198
var declaration = ts.getDeclarationOfKind(type.symbol, 238);
6519965199
if (declaration) {
65200-
superMethodNames = checkClassInstantiation(declaration);
65200+
methodNames = checkClassInstantiation(declaration);
6520165201
}
6520265202
}
6520365203
}
@@ -65213,7 +65213,7 @@ var ts;
6521365213
}
6521465214
if (member.kind === 154) {
6521565215
var methodName = ts.unescapeLeadingUnderscores(ts.getTextOfPropertyName(member.name));
65216-
if (superMethodNames.indexOf(methodName) != -1) {
65216+
if (methodNames.indexOf(methodName) != -1) {
6521765217
visitBlock(member.body);
6521865218
}
6521965219
}
@@ -65226,7 +65226,6 @@ var ts;
6522665226
visitBlock(constructor.body);
6522765227
}
6522865228
}
65229-
var methodNames = [];
6523065229
for (var i = index; i < calledMethods.length; i++) {
6523165230
var method = calledMethods[i];
6523265231
for (var _a = 0, members_9 = members; _a < members_9.length; _a++) {

lib/tsserver.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var ts;
8989
ts.versionMajorMinor = "3.1";
9090
/** The version of the TypeScript compiler release */
9191
ts.version = ts.versionMajorMinor + ".3";
92-
ts.version_plus = "3.1.4";
92+
ts.version_plus = "3.1.5";
9393
})(ts || (ts = {}));
9494
(function (ts) {
9595
/* @internal */
@@ -80472,14 +80472,14 @@ var ts;
8047280472
}
8047380473
}
8047480474
function checkClassInstantiation(node) {
80475-
var superMethodNames = [];
80475+
var methodNames = [];
8047680476
var superClass = ts.getClassExtendsHeritageElement(node);
8047780477
if (superClass) {
8047880478
var type = checker.getTypeAtLocation(superClass);
8047980479
if (type && type.symbol) {
8048080480
var declaration = ts.getDeclarationOfKind(type.symbol, 238 /* ClassDeclaration */);
8048180481
if (declaration) {
80482-
superMethodNames = checkClassInstantiation(declaration);
80482+
methodNames = checkClassInstantiation(declaration);
8048380483
}
8048480484
}
8048580485
}
@@ -80495,7 +80495,7 @@ var ts;
8049580495
}
8049680496
if (member.kind === 154 /* MethodDeclaration */) { // called by super class.
8049780497
var methodName = ts.unescapeLeadingUnderscores(ts.getTextOfPropertyName(member.name));
80498-
if (superMethodNames.indexOf(methodName) != -1) {
80498+
if (methodNames.indexOf(methodName) != -1) {
8049980499
visitBlock(member.body);
8050080500
}
8050180501
}
@@ -80508,7 +80508,6 @@ var ts;
8050880508
visitBlock(constructor.body);
8050980509
}
8051080510
}
80511-
var methodNames = [];
8051280511
for (var i = index; i < calledMethods.length; i++) {
8051380512
var method = calledMethods[i];
8051480513
for (var _a = 0, members_9 = members; _a < members_9.length; _a++) {

lib/tsserverlibrary.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare namespace ts {
1717
const versionMajorMinor = "3.1";
1818
/** The version of the TypeScript compiler release */
1919
const version: string;
20-
const version_plus = "3.1.4";
20+
const version_plus = "3.1.5";
2121
}
2222
declare namespace ts {
2323
/**

lib/tsserverlibrary.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var ts;
8585
ts.versionMajorMinor = "3.1";
8686
/** The version of the TypeScript compiler release */
8787
ts.version = ts.versionMajorMinor + ".3";
88-
ts.version_plus = "3.1.4";
88+
ts.version_plus = "3.1.5";
8989
})(ts || (ts = {}));
9090
(function (ts) {
9191
/* @internal */
@@ -80468,14 +80468,14 @@ var ts;
8046880468
}
8046980469
}
8047080470
function checkClassInstantiation(node) {
80471-
var superMethodNames = [];
80471+
var methodNames = [];
8047280472
var superClass = ts.getClassExtendsHeritageElement(node);
8047380473
if (superClass) {
8047480474
var type = checker.getTypeAtLocation(superClass);
8047580475
if (type && type.symbol) {
8047680476
var declaration = ts.getDeclarationOfKind(type.symbol, 238 /* ClassDeclaration */);
8047780477
if (declaration) {
80478-
superMethodNames = checkClassInstantiation(declaration);
80478+
methodNames = checkClassInstantiation(declaration);
8047980479
}
8048080480
}
8048180481
}
@@ -80491,7 +80491,7 @@ var ts;
8049180491
}
8049280492
if (member.kind === 154 /* MethodDeclaration */) { // called by super class.
8049380493
var methodName = ts.unescapeLeadingUnderscores(ts.getTextOfPropertyName(member.name));
80494-
if (superMethodNames.indexOf(methodName) != -1) {
80494+
if (methodNames.indexOf(methodName) != -1) {
8049580495
visitBlock(member.body);
8049680496
}
8049780497
}
@@ -80504,7 +80504,6 @@ var ts;
8050480504
visitBlock(constructor.body);
8050580505
}
8050680506
}
80507-
var methodNames = [];
8050880507
for (var i = index; i < calledMethods.length; i++) {
8050980508
var method = calledMethods[i];
8051080509
for (var _a = 0, members_9 = members; _a < members_9.length; _a++) {

lib/typescript.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare namespace ts {
1717
const versionMajorMinor = "3.1";
1818
/** The version of the TypeScript compiler release */
1919
const version: string;
20-
const version_plus = "3.1.4";
20+
const version_plus = "3.1.5";
2121
}
2222
declare namespace ts {
2323
/**

lib/typescript.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var ts;
7676
ts.versionMajorMinor = "3.1";
7777
/** The version of the TypeScript compiler release */
7878
ts.version = ts.versionMajorMinor + ".3";
79-
ts.version_plus = "3.1.4";
79+
ts.version_plus = "3.1.5";
8080
})(ts || (ts = {}));
8181
(function (ts) {
8282
/* @internal */
@@ -80459,14 +80459,14 @@ var ts;
8045980459
}
8046080460
}
8046180461
function checkClassInstantiation(node) {
80462-
var superMethodNames = [];
80462+
var methodNames = [];
8046380463
var superClass = ts.getClassExtendsHeritageElement(node);
8046480464
if (superClass) {
8046580465
var type = checker.getTypeAtLocation(superClass);
8046680466
if (type && type.symbol) {
8046780467
var declaration = ts.getDeclarationOfKind(type.symbol, 238 /* ClassDeclaration */);
8046880468
if (declaration) {
80469-
superMethodNames = checkClassInstantiation(declaration);
80469+
methodNames = checkClassInstantiation(declaration);
8047080470
}
8047180471
}
8047280472
}
@@ -80482,7 +80482,7 @@ var ts;
8048280482
}
8048380483
if (member.kind === 154 /* MethodDeclaration */) { // called by super class.
8048480484
var methodName = ts.unescapeLeadingUnderscores(ts.getTextOfPropertyName(member.name));
80485-
if (superMethodNames.indexOf(methodName) != -1) {
80485+
if (methodNames.indexOf(methodName) != -1) {
8048680486
visitBlock(member.body);
8048780487
}
8048880488
}
@@ -80495,7 +80495,6 @@ var ts;
8049580495
visitBlock(constructor.body);
8049680496
}
8049780497
}
80498-
var methodNames = [];
8049980498
for (var i = index; i < calledMethods.length; i++) {
8050080499
var method = calledMethods[i];
8050180500
for (var _a = 0, members_9 = members; _a < members_9.length; _a++) {

lib/typescriptServices.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare namespace ts {
1717
const versionMajorMinor = "3.1";
1818
/** The version of the TypeScript compiler release */
1919
const version: string;
20-
const version_plus = "3.1.4";
20+
const version_plus = "3.1.5";
2121
}
2222
declare namespace ts {
2323
/**

lib/typescriptServices.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var ts;
7676
ts.versionMajorMinor = "3.1";
7777
/** The version of the TypeScript compiler release */
7878
ts.version = ts.versionMajorMinor + ".3";
79-
ts.version_plus = "3.1.4";
79+
ts.version_plus = "3.1.5";
8080
})(ts || (ts = {}));
8181
(function (ts) {
8282
/* @internal */
@@ -80459,14 +80459,14 @@ var ts;
8045980459
}
8046080460
}
8046180461
function checkClassInstantiation(node) {
80462-
var superMethodNames = [];
80462+
var methodNames = [];
8046380463
var superClass = ts.getClassExtendsHeritageElement(node);
8046480464
if (superClass) {
8046580465
var type = checker.getTypeAtLocation(superClass);
8046680466
if (type && type.symbol) {
8046780467
var declaration = ts.getDeclarationOfKind(type.symbol, 238 /* ClassDeclaration */);
8046880468
if (declaration) {
80469-
superMethodNames = checkClassInstantiation(declaration);
80469+
methodNames = checkClassInstantiation(declaration);
8047080470
}
8047180471
}
8047280472
}
@@ -80482,7 +80482,7 @@ var ts;
8048280482
}
8048380483
if (member.kind === 154 /* MethodDeclaration */) { // called by super class.
8048480484
var methodName = ts.unescapeLeadingUnderscores(ts.getTextOfPropertyName(member.name));
80485-
if (superMethodNames.indexOf(methodName) != -1) {
80485+
if (methodNames.indexOf(methodName) != -1) {
8048680486
visitBlock(member.body);
8048780487
}
8048880488
}
@@ -80495,7 +80495,6 @@ var ts;
8049580495
visitBlock(constructor.body);
8049680496
}
8049780497
}
80498-
var methodNames = [];
8049980498
for (var i = index; i < calledMethods.length; i++) {
8050080499
var method = calledMethods[i];
8050180500
for (var _a = 0, members_9 = members; _a < members_9.length; _a++) {

lib/typingsInstaller.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var ts;
8989
ts.versionMajorMinor = "3.1";
9090
/** The version of the TypeScript compiler release */
9191
ts.version = ts.versionMajorMinor + ".3";
92-
ts.version_plus = "3.1.4";
92+
ts.version_plus = "3.1.5";
9393
})(ts || (ts = {}));
9494
(function (ts) {
9595
/* @internal */
@@ -80472,14 +80472,14 @@ var ts;
8047280472
}
8047380473
}
8047480474
function checkClassInstantiation(node) {
80475-
var superMethodNames = [];
80475+
var methodNames = [];
8047680476
var superClass = ts.getClassExtendsHeritageElement(node);
8047780477
if (superClass) {
8047880478
var type = checker.getTypeAtLocation(superClass);
8047980479
if (type && type.symbol) {
8048080480
var declaration = ts.getDeclarationOfKind(type.symbol, 238 /* ClassDeclaration */);
8048180481
if (declaration) {
80482-
superMethodNames = checkClassInstantiation(declaration);
80482+
methodNames = checkClassInstantiation(declaration);
8048380483
}
8048480484
}
8048580485
}
@@ -80495,7 +80495,7 @@ var ts;
8049580495
}
8049680496
if (member.kind === 154 /* MethodDeclaration */) { // called by super class.
8049780497
var methodName = ts.unescapeLeadingUnderscores(ts.getTextOfPropertyName(member.name));
80498-
if (superMethodNames.indexOf(methodName) != -1) {
80498+
if (methodNames.indexOf(methodName) != -1) {
8049980499
visitBlock(member.body);
8050080500
}
8050180501
}
@@ -80508,7 +80508,6 @@ var ts;
8050880508
visitBlock(constructor.body);
8050980509
}
8051080510
}
80511-
var methodNames = [];
8051280511
for (var i = index; i < calledMethods.length; i++) {
8051380512
var method = calledMethods[i];
8051480513
for (var _a = 0, members_9 = members; _a < members_9.length; _a++) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "typescript-plus",
33
"author": "Dom Chen",
44
"homepage": "http://www.idom.me/",
5-
"version": "3.1.4",
5+
"version": "3.1.5",
66
"license": "Apache-2.0",
77
"description": "An enhanced version of the original typescript compiler.",
88
"keywords": [

0 commit comments

Comments
 (0)