Skip to content

Commit 209fa7c

Browse files
committed
Rebuilt using the latest stable Typescript
1 parent ad2a49f commit 209fa7c

File tree

87 files changed

+321
-120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+321
-120
lines changed

dist/hyperclickProvider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var parent = require("./worker/parent");
34
var atomUtils = require("./main/atom/atomUtils");
45
var immutable_1 = require("immutable");

dist/linter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var parent = require("./worker/parent");
34
var fs = require("fs");
45
var atom_1 = require("atom");

dist/main/atom/atomUtils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var path = require("path");
34
var fs = require("fs");
45
var fsu = require("../utils/fsUtil");

dist/main/atom/autoCompleteProvider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var parent = require("../../worker/parent");
34
var fs = require("fs");
45
var atomUtils = require("./atomUtils");

dist/main/atom/buildView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var mainPanelView = require("./views/mainPanelView");
34
var lineMessageView = require("./views/lineMessageView");
45
var gotoHistory = require("./gotoHistory");

dist/main/atom/commands/commands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
function __export(m) {
33
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
44
}
5+
Object.defineProperty(exports, "__esModule", { value: true });
56
var parent = require("../../../worker/parent");
67
var buildView = require("../buildView");
78
var atomUtils = require("../atomUtils");

dist/main/atom/commands/json2dtsCommands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var atomUtils = require("../atomUtils");
34
var json2dts_1 = require("../../json2dts/json2dts");
45
function registerJson2dtsCommands() {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
function registerRenameHandling() {
34
}
45
exports.registerRenameHandling = registerRenameHandling;

dist/main/atom/commands/outputFileCommands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var atomUtils = require("../atomUtils");
34
var parent = require("../../../worker/parent");
45
var child_process_1 = require("child_process");

dist/main/atom/commands/reactCommands.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var atomUtils = require("../atomUtils");
34
var htmltotsx_1 = require("../../react/htmltotsx");
45
function registerReactCommands() {

dist/main/atom/components/componentRegistry.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
function __export(m) {
33
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
44
}
5+
Object.defineProperty(exports, "__esModule", { value: true });
56
__export(require("./ts-view"));

dist/main/atom/components/ts-view.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
"use strict";
2-
var __extends = (this && this.__extends) || function (d, b) {
3-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4-
function __() { this.constructor = d; }
5-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6-
};
2+
var __extends = (this && this.__extends) || (function () {
3+
var extendStatics = Object.setPrototypeOf ||
4+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6+
return function (d, b) {
7+
extendStatics(d, b);
8+
function __() { this.constructor = d; }
9+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10+
};
11+
})();
12+
Object.defineProperty(exports, "__esModule", { value: true });
713
var TsView = (function (_super) {
814
__extends(TsView, _super);
915
function TsView() {
10-
return _super.apply(this, arguments) || this;
16+
return _super !== null && _super.apply(this, arguments) || this;
1117
}
1218
TsView.prototype.createdCallback = function () {
1319
var preview = this.innerText;

dist/main/atom/debugAtomTs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var atomConfig = require("./atomConfig");
34
function runDebugCode(details) {
45
if (!atomConfig.debugAtomTs)

dist/main/atom/editorSetup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
function setupEditor(editor) {
34
var editorView = atom.views.getView(editor);
45
editorView.classList.add('typescript-editor');

dist/main/atom/fileStatusCache.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var fsUtil_1 = require("../utils/fsUtil");
34
;
45
var fileStatuses = {};

dist/main/atom/gotoHistory.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
exports.errorsInOpenFiles = { members: [] };
34
exports.buildOutput = { members: [] };
45
exports.referencesOutput = { members: [] };

dist/main/atom/onSaveHandler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var atomUtils = require("./atomUtils");
34
var parent = require("../../worker/parent");
45
var mainPanelView_1 = require("./views/mainPanelView");

dist/main/atom/signatureProvider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
function requestHandler(config) {
34
}
45
exports.requestHandler = requestHandler;

dist/main/atom/tooltipManager.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
23
var atomUtils = require("./atomUtils");
34
var parent = require("../../worker/parent");
45
var path = require("path");
@@ -18,6 +19,9 @@ exports.getFromShadowDom = getFromShadowDom;
1819
function attach(editorView, editor) {
1920
var rawView = editorView[0];
2021
var filePath = editor.getPath();
22+
if (!filePath) {
23+
return;
24+
}
2125
var filename = path.basename(filePath);
2226
var ext = path.extname(filename);
2327
if (!atomUtils.isAllowedExtension(ext))
@@ -32,7 +36,7 @@ function attach(editorView, editor) {
3236
var lastExprTypeBufferPt;
3337
subscriber.subscribe(scroll, 'mousemove', function (e) {
3438
var pixelPt = pixelPositionFromMouseEvent(editorView, e);
35-
var screenPt = editor.screenPositionForPixelPosition(pixelPt);
39+
var screenPt = editor.element.screenPositionForPixelPosition(pixelPt);
3640
var bufferPt = editor.bufferPositionForScreenPosition(screenPt);
3741
if (lastExprTypeBufferPt && lastExprTypeBufferPt.isEqual(bufferPt) && exprTypeTooltip)
3842
return;
@@ -47,9 +51,9 @@ function attach(editorView, editor) {
4751
if (exprTypeTooltip)
4852
return;
4953
var pixelPt = pixelPositionFromMouseEvent(editorView, e);
50-
pixelPt.top += editor.getScrollTop();
51-
pixelPt.left += editor.getScrollLeft();
52-
var screenPt = editor.screenPositionForPixelPosition(pixelPt);
54+
pixelPt.top += editor.element.getScrollTop();
55+
pixelPt.left += editor.element.getScrollLeft();
56+
var screenPt = editor.element.screenPositionForPixelPosition(pixelPt);
5357
var bufferPt = editor.bufferPositionForScreenPosition(screenPt);
5458
var curCharPixelPt = rawView.pixelPositionForBufferPosition([bufferPt.row, bufferPt.column]);
5559
var nextCharPixelPt = rawView.pixelPositionForBufferPosition([bufferPt.row, bufferPt.column + 1]);

dist/main/atom/typescriptGrammar.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
"use strict";
2-
var __extends = (this && this.__extends) || function (d, b) {
3-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4-
function __() { this.constructor = d; }
5-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6-
};
2+
var __extends = (this && this.__extends) || (function () {
3+
var extendStatics = Object.setPrototypeOf ||
4+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6+
return function (d, b) {
7+
extendStatics(d, b);
8+
function __() { this.constructor = d; }
9+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10+
};
11+
})();
12+
Object.defineProperty(exports, "__esModule", { value: true });
713
var utils = require("../lang/utils");
814
var TokenClass = ts.TokenClass;
915
global.AtomTSBaseGrammar = require(atom.config.resourcePath + "/node_modules/first-mate/lib/grammar.js");

dist/main/atom/views/astView.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
"use strict";
2-
var __extends = (this && this.__extends) || function (d, b) {
3-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4-
function __() { this.constructor = d; }
5-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6-
};
2+
var __extends = (this && this.__extends) || (function () {
3+
var extendStatics = Object.setPrototypeOf ||
4+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6+
return function (d, b) {
7+
extendStatics(d, b);
8+
function __() { this.constructor = d; }
9+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10+
};
11+
})();
12+
Object.defineProperty(exports, "__esModule", { value: true });
713
var sp = require("atom-space-pen-views");
814
var atomUtils = require("../atomUtils");
915
var parent = require("../../../worker/parent");

dist/main/atom/views/awesomePanelView.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
"use strict";
2-
var __extends = (this && this.__extends) || function (d, b) {
3-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4-
function __() { this.constructor = d; }
5-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6-
};
2+
var __extends = (this && this.__extends) || (function () {
3+
var extendStatics = Object.setPrototypeOf ||
4+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6+
return function (d, b) {
7+
extendStatics(d, b);
8+
function __() { this.constructor = d; }
9+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10+
};
11+
})();
12+
Object.defineProperty(exports, "__esModule", { value: true });
713
var view = require("./view");
814
var $ = view.$;
915
var AwesomePanelView = (function (_super) {
1016
__extends(AwesomePanelView, _super);
1117
function AwesomePanelView() {
12-
return _super.apply(this, arguments) || this;
18+
return _super !== null && _super.apply(this, arguments) || this;
1319
}
1420
AwesomePanelView.content = function () {
1521
var _this = this;

dist/main/atom/views/contextView.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
"use strict";
2-
var __extends = (this && this.__extends) || function (d, b) {
3-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4-
function __() { this.constructor = d; }
5-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6-
};
2+
var __extends = (this && this.__extends) || (function () {
3+
var extendStatics = Object.setPrototypeOf ||
4+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6+
return function (d, b) {
7+
extendStatics(d, b);
8+
function __() { this.constructor = d; }
9+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10+
};
11+
})();
12+
Object.defineProperty(exports, "__esModule", { value: true });
713
var sp = require("atom-space-pen-views");
814
var mainPanelView = require("./mainPanelView");
915
var semanticView = require("./semanticView");
@@ -18,7 +24,7 @@ var items = Object.keys(titles).map(function (item) { return { title: titles[ite
1824
var ContextView = (function (_super) {
1925
__extends(ContextView, _super);
2026
function ContextView() {
21-
var _this = _super.apply(this, arguments) || this;
27+
var _this = _super !== null && _super.apply(this, arguments) || this;
2228
_this.panel = null;
2329
return _this;
2430
}

dist/main/atom/views/dependencyView.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
"use strict";
2-
var __extends = (this && this.__extends) || function (d, b) {
3-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4-
function __() { this.constructor = d; }
5-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6-
};
2+
var __extends = (this && this.__extends) || (function () {
3+
var extendStatics = Object.setPrototypeOf ||
4+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6+
return function (d, b) {
7+
extendStatics(d, b);
8+
function __() { this.constructor = d; }
9+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10+
};
11+
})();
12+
Object.defineProperty(exports, "__esModule", { value: true });
713
var sp = require("atom-space-pen-views");
814
var atomUtils = require("../atomUtils");
915
var parent = require("../../../worker/parent");

dist/main/atom/views/documentationView.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
"use strict";
2-
var __extends = (this && this.__extends) || function (d, b) {
3-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4-
function __() { this.constructor = d; }
5-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6-
};
2+
var __extends = (this && this.__extends) || (function () {
3+
var extendStatics = Object.setPrototypeOf ||
4+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6+
return function (d, b) {
7+
extendStatics(d, b);
8+
function __() { this.constructor = d; }
9+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10+
};
11+
})();
12+
Object.defineProperty(exports, "__esModule", { value: true });
713
var view = require("./view");
814
var $ = view.$;
915
var DocumentationView = (function (_super) {
1016
__extends(DocumentationView, _super);
1117
function DocumentationView() {
12-
var _this = _super.apply(this, arguments) || this;
18+
var _this = _super !== null && _super.apply(this, arguments) || this;
1319
_this.shown = false;
1420
return _this;
1521
}

dist/main/atom/views/fileSymbolsView.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
"use strict";
2-
var __extends = (this && this.__extends) || function (d, b) {
3-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4-
function __() { this.constructor = d; }
5-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6-
};
2+
var __extends = (this && this.__extends) || (function () {
3+
var extendStatics = Object.setPrototypeOf ||
4+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6+
return function (d, b) {
7+
extendStatics(d, b);
8+
function __() { this.constructor = d; }
9+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10+
};
11+
})();
12+
Object.defineProperty(exports, "__esModule", { value: true });
713
var sp = require("atom-space-pen-views");
814
var atomUtils = require("../atomUtils");
915
var FileSymbolsView = (function (_super) {
1016
__extends(FileSymbolsView, _super);
1117
function FileSymbolsView() {
12-
var _this = _super.apply(this, arguments) || this;
18+
var _this = _super !== null && _super.apply(this, arguments) || this;
1319
_this.panel = null;
1420
return _this;
1521
}

dist/main/atom/views/lineMessageView.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
"use strict";
2-
var __extends = (this && this.__extends) || function (d, b) {
3-
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
4-
function __() { this.constructor = d; }
5-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6-
};
2+
var __extends = (this && this.__extends) || (function () {
3+
var extendStatics = Object.setPrototypeOf ||
4+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6+
return function (d, b) {
7+
extendStatics(d, b);
8+
function __() { this.constructor = d; }
9+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
10+
};
11+
})();
12+
Object.defineProperty(exports, "__esModule", { value: true });
713
var view = require("./view");
814
var $ = view.$;
915
var LineMessageView = (function (_super) {
1016
__extends(LineMessageView, _super);
1117
function LineMessageView() {
12-
return _super.apply(this, arguments) || this;
18+
return _super !== null && _super.apply(this, arguments) || this;
1319
}
1420
LineMessageView.content = function () {
1521
var _this = this;

0 commit comments

Comments
 (0)