Skip to content

Commit 5138a8a

Browse files
authored
Merge pull request #1073 from guncha/update-ntypescript
Update ntypescript to 2016-09-30 release
2 parents fdff9a2 + 0962a19 commit 5138a8a

Some content is hidden

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

47 files changed

+216
-201
lines changed

dist/linter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
2-
var parent = require('./worker/parent');
3-
var fs = require('fs');
2+
var parent = require("./worker/parent");
3+
var fs = require("fs");
44
var atom_1 = require("atom");
55
exports.provider = {
66
name: 'TS',

dist/main/atom/atomUtils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"use strict";
2-
var path = require('path');
3-
var fs = require('fs');
2+
var path = require("path");
3+
var fs = require("fs");
44
var fsu = require("../utils/fsUtil");
5-
var _atom = require('atom');
6-
var url = require('url');
5+
var _atom = require("atom");
6+
var url = require("url");
77
function getEditorPosition(editor) {
88
var bufferPos = editor.getCursorBufferPosition();
99
return getEditorPositionForBufferPosition(editor, bufferPos);

dist/main/atom/autoCompleteProvider.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict";
2-
var parent = require('../../worker/parent');
3-
var atomConfig = require('./atomConfig');
4-
var fs = require('fs');
5-
var atomUtils = require('./atomUtils');
2+
var parent = require("../../worker/parent");
3+
var atomConfig = require("./atomConfig");
4+
var fs = require("fs");
5+
var atomUtils = require("./atomUtils");
66
var fuzzaldrin = require('fuzzaldrin');
77
var CSON = require("season");
88
var explicitlyTriggered = false;

dist/main/atom/buildView.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
2-
var mainPanelView = require('./views/mainPanelView');
3-
var lineMessageView = require('./views/lineMessageView');
4-
var gotoHistory = require('./gotoHistory');
2+
var mainPanelView = require("./views/mainPanelView");
3+
var lineMessageView = require("./views/lineMessageView");
4+
var gotoHistory = require("./gotoHistory");
55
function getTitle(errorCount) {
66
var title = '<span class="icon-circuit-board"></span> TypeScript Build';
77
if (errorCount > 0) {

dist/main/atom/commands/commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var parent = require("../../../worker/parent");
66
var buildView = require("../buildView");
77
var atomUtils = require("../atomUtils");
88
var autoCompleteProvider = require("../autoCompleteProvider");
9-
var path = require('path');
9+
var path = require("path");
1010
var renameView = require("../views/renameView");
1111
var contextView = require("../views/contextView");
1212
var fileSymbolsView = require("../views/fileSymbolsView");
@@ -21,7 +21,7 @@ var simpleSelectionView_1 = require("../views/simpleSelectionView");
2121
var simpleOverlaySelectionView_1 = require("../views/simpleOverlaySelectionView");
2222
var outputFileCommands = require("./outputFileCommands");
2323
var moveFilesHandling_1 = require("./moveFilesHandling");
24-
var escapeHtml = require('escape-html');
24+
var escapeHtml = require("escape-html");
2525
var rView = require("../views/rView");
2626
var reactCommands_1 = require("./reactCommands");
2727
var fileStatusCache_1 = require("../fileStatusCache");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var escapeHtml = require("escape-html");
88
var TsView = (function (_super) {
99
__extends(TsView, _super);
1010
function TsView() {
11-
_super.apply(this, arguments);
11+
return _super.apply(this, arguments) || this;
1212
}
1313
TsView.prototype.createdCallback = function () {
1414
var preview = escapeHtml(this.innerText);

dist/main/atom/debugAtomTs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
2-
var atomConfig = require('./atomConfig');
2+
var atomConfig = require("./atomConfig");
33
function runDebugCode(details) {
44
if (!atomConfig.debugAtomTs)
55
return;

dist/main/atom/fileStatusCache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
2-
var fsUtil_1 = require('../utils/fsUtil');
2+
var fsUtil_1 = require("../utils/fsUtil");
33
;
44
var fileStatuses = {};
55
function getFileStatus(filePath) {

dist/main/atom/onSaveHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
var atomUtils = require("./atomUtils");
3-
var parent = require('../../worker/parent');
3+
var parent = require("../../worker/parent");
44
var mainPanelView_1 = require("./views/mainPanelView");
55
var fileStatusCache_1 = require("./fileStatusCache");
66
function handle(event) {

dist/main/atom/tooltipManager.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
"use strict";
2-
var atomUtils = require('./atomUtils');
3-
var parent = require('../../worker/parent');
4-
var path = require('path');
5-
var fs = require('fs');
6-
var emissary = require('emissary');
2+
var atomUtils = require("./atomUtils");
3+
var parent = require("../../worker/parent");
4+
var path = require("path");
5+
var fs = require("fs");
6+
var emissary = require("emissary");
77
var Subscriber = emissary.Subscriber;
8-
var tooltipView = require('./views/tooltipView');
8+
var tooltipView = require("./views/tooltipView");
99
var TooltipView = tooltipView.TooltipView;
1010
var atom_space_pen_views_1 = require("atom-space-pen-views");
11-
var escape = require('escape-html');
11+
var escape = require("escape-html");
1212
function getFromShadowDom(element, selector) {
1313
var el = element[0];
1414
var found = el.rootElement.querySelectorAll(selector);

dist/main/atom/typescriptGrammar.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,28 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var utils = require('../lang/utils');
7+
var utils = require("../lang/utils");
88
var TokenClass = ts.TokenClass;
99
global.AtomTSBaseGrammar = require(atom.config.resourcePath + "/node_modules/first-mate/lib/grammar.js");
1010
var TypeScriptSemanticGrammar = (function (_super) {
1111
__extends(TypeScriptSemanticGrammar, _super);
1212
function TypeScriptSemanticGrammar(registry) {
13-
_super.call(this, registry, {
13+
var _this = _super.call(this, registry, {
1414
name: "TypeScript",
1515
scopeName: "source.ts",
1616
patterns: {},
1717
fileTypes: ['ts', 'tst']
18-
});
19-
this.registry = registry;
20-
this.trailingWhiteSpaceLength = 0;
21-
this.classifier = ts.createClassifier();
22-
this.fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;
23-
this.fullTripleSlashAMDNameRegEx = /^(\/\/\/\s*<amd-module\s+name\s*=\s*)('|")(.+?)\2.*?\/>/;
24-
this.fullTripleSlashAMDDependencyPathRegEx = /^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;
25-
this.importRequireRegex = /^import\s*(\w*)\s*=\s*require\((?:'|")(\S*)(?:'|")\.*\)/;
26-
this.es6importRegex = /^import.*from.*/;
27-
this.todoRegex = new RegExp('(BUG|TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE)');
18+
}) || this;
19+
_this.registry = registry;
20+
_this.trailingWhiteSpaceLength = 0;
21+
_this.classifier = ts.createClassifier();
22+
_this.fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;
23+
_this.fullTripleSlashAMDNameRegEx = /^(\/\/\/\s*<amd-module\s+name\s*=\s*)('|")(.+?)\2.*?\/>/;
24+
_this.fullTripleSlashAMDDependencyPathRegEx = /^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;
25+
_this.importRequireRegex = /^import\s*(\w*)\s*=\s*require\((?:'|")(\S*)(?:'|")\.*\)/;
26+
_this.es6importRegex = /^import.*from.*/;
27+
_this.todoRegex = new RegExp('(BUG|TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE)');
28+
return _this;
2829
}
2930
TypeScriptSemanticGrammar.prototype.tokenizeLine = function (line, ruleStack, firstLine) {
3031
if (firstLine === void 0) { firstLine = false; }

dist/main/atom/views/astView.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var sp = require('atom-space-pen-views');
7+
var sp = require("atom-space-pen-views");
88
var atomUtils = require("../atomUtils");
99
var parent = require("../../../worker/parent");
1010
var d3 = require("d3");
@@ -13,15 +13,15 @@ exports.astURIFull = "ts-ast-full:";
1313
var AstView = (function (_super) {
1414
__extends(AstView, _super);
1515
function AstView(filePath, text, full) {
16-
var _this = this;
17-
_super.call(this);
18-
this.filePath = filePath;
19-
this.text = text;
20-
this.full = full;
21-
this.getURI = function () { return atomUtils.uriForPath(_this.full ? exports.astURIFull : exports.astURI, _this.filePath); };
22-
this.getTitle = function () { return 'TypeScript AST'; };
23-
this.getIconName = function () { return 'repo-forked'; };
24-
this.init();
16+
var _this = _super.call(this) || this;
17+
_this.filePath = filePath;
18+
_this.text = text;
19+
_this.full = full;
20+
_this.getURI = function () { return atomUtils.uriForPath(_this.full ? exports.astURIFull : exports.astURI, _this.filePath); };
21+
_this.getTitle = function () { return 'TypeScript AST'; };
22+
_this.getIconName = function () { return 'repo-forked'; };
23+
_this.init();
24+
return _this;
2525
}
2626
AstView.content = function () {
2727
var _this = this;

dist/main/atom/views/awesomePanelView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var view = require('./view');
7+
var view = require("./view");
88
var $ = view.$;
99
var AwesomePanelView = (function (_super) {
1010
__extends(AwesomePanelView, _super);
1111
function AwesomePanelView() {
12-
_super.apply(this, arguments);
12+
return _super.apply(this, arguments) || this;
1313
}
1414
AwesomePanelView.content = function () {
1515
var _this = this;

dist/main/atom/views/contextView.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var sp = require('atom-space-pen-views');
8-
var mainPanelView = require('./mainPanelView');
7+
var sp = require("atom-space-pen-views");
8+
var mainPanelView = require("./mainPanelView");
99
var semanticView = require("./semanticView");
1010
var titles = {
1111
togglePanel: 'Toggle TypeScript Panel',
@@ -18,8 +18,9 @@ var items = Object.keys(titles).map(function (item) { return { title: titles[ite
1818
var ContextView = (function (_super) {
1919
__extends(ContextView, _super);
2020
function ContextView() {
21-
_super.apply(this, arguments);
22-
this.panel = null;
21+
var _this = _super.apply(this, arguments) || this;
22+
_this.panel = null;
23+
return _this;
2324
}
2425
Object.defineProperty(ContextView.prototype, "$", {
2526
get: function () {

dist/main/atom/views/dependencyView.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var sp = require('atom-space-pen-views');
7+
var sp = require("atom-space-pen-views");
88
var atomUtils = require("../atomUtils");
99
var parent = require("../../../worker/parent");
1010
var d3 = require("d3");
@@ -15,13 +15,13 @@ exports.dependencyURI = "ts-dependency:";
1515
var DependencyView = (function (_super) {
1616
__extends(DependencyView, _super);
1717
function DependencyView(filePath) {
18-
var _this = this;
19-
_super.call(this);
20-
this.filePath = filePath;
21-
this.getURI = function () { return atomUtils.uriForPath(exports.dependencyURI, _this.filePath); };
22-
this.getTitle = function () { return 'TypeScript Dependencies'; };
23-
this.getIconName = function () { return 'git-compare'; };
24-
this.init();
18+
var _this = _super.call(this) || this;
19+
_this.filePath = filePath;
20+
_this.getURI = function () { return atomUtils.uriForPath(exports.dependencyURI, _this.filePath); };
21+
_this.getTitle = function () { return 'TypeScript Dependencies'; };
22+
_this.getIconName = function () { return 'git-compare'; };
23+
_this.init();
24+
return _this;
2525
}
2626
DependencyView.content = function () {
2727
return this.div({ class: 'dependency-view' }, function () {

dist/main/atom/views/documentationView.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var view = require('./view');
7+
var view = require("./view");
88
var $ = view.$;
99
var DocumentationView = (function (_super) {
1010
__extends(DocumentationView, _super);
1111
function DocumentationView() {
12-
_super.apply(this, arguments);
13-
this.shown = false;
12+
var _this = _super.apply(this, arguments) || this;
13+
_this.shown = false;
14+
return _this;
1415
}
1516
DocumentationView.content = function () {
1617
var _this = this;

dist/main/atom/views/fileSymbolsView.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var sp = require('atom-space-pen-views');
7+
var sp = require("atom-space-pen-views");
88
var atomUtils = require("../atomUtils");
99
var FileSymbolsView = (function (_super) {
1010
__extends(FileSymbolsView, _super);
1111
function FileSymbolsView() {
12-
_super.apply(this, arguments);
13-
this.panel = null;
12+
var _this = _super.apply(this, arguments) || this;
13+
_this.panel = null;
14+
return _this;
1415
}
1516
Object.defineProperty(FileSymbolsView.prototype, "$", {
1617
get: function () {

dist/main/atom/views/lineMessageView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var view = require('./view');
7+
var view = require("./view");
88
var $ = view.$;
99
var LineMessageView = (function (_super) {
1010
__extends(LineMessageView, _super);
1111
function LineMessageView() {
12-
_super.apply(this, arguments);
12+
return _super.apply(this, arguments) || this;
1313
}
1414
LineMessageView.content = function () {
1515
var _this = this;

dist/main/atom/views/mainPanelView.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var view = require('./view');
7+
var view = require("./view");
88
var $ = view.$;
9-
var lineMessageView = require('./lineMessageView');
9+
var lineMessageView = require("./lineMessageView");
1010
var atomUtils = require("../atomUtils");
1111
var parent = require("../../../worker/parent");
1212
var utils = require("../../lang/utils");
@@ -16,14 +16,15 @@ var panelHeaders = {
1616
build: 'Last Build Output',
1717
references: 'References'
1818
};
19-
var gotoHistory = require('../gotoHistory');
19+
var gotoHistory = require("../gotoHistory");
2020
var MainPanelView = (function (_super) {
2121
__extends(MainPanelView, _super);
2222
function MainPanelView() {
23-
_super.apply(this, arguments);
24-
this.pendingRequests = [];
25-
this.expanded = false;
26-
this.clearedError = true;
23+
var _this = _super.apply(this, arguments) || this;
24+
_this.pendingRequests = [];
25+
_this.expanded = false;
26+
_this.clearedError = true;
27+
return _this;
2728
}
2829
MainPanelView.content = function () {
2930
var _this = this;

dist/main/atom/views/plainMessageView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var view = require('./view');
7+
var view = require("./view");
88
var $ = view.$;
99
var PlainMessageView = (function (_super) {
1010
__extends(PlainMessageView, _super);
1111
function PlainMessageView() {
12-
_super.apply(this, arguments);
12+
return _super.apply(this, arguments) || this;
1313
}
1414
PlainMessageView.content = function () {
1515
this.div({

dist/main/atom/views/projectSymbolsView.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ var __extends = (this && this.__extends) || function (d, b) {
44
function __() { this.constructor = d; }
55
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
66
};
7-
var sp = require('atom-space-pen-views');
7+
var sp = require("atom-space-pen-views");
88
var atomUtils = require("../atomUtils");
99
var ProjectSymbolsView = (function (_super) {
1010
__extends(ProjectSymbolsView, _super);
1111
function ProjectSymbolsView() {
12-
_super.apply(this, arguments);
13-
this.panel = null;
12+
var _this = _super.apply(this, arguments) || this;
13+
_this.panel = null;
14+
return _this;
1415
}
1516
Object.defineProperty(ProjectSymbolsView.prototype, "$", {
1617
get: function () {

0 commit comments

Comments
 (0)