@angular/language-service 5.2.2 → 5.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/language-service.umd.js +34 -15
- package/bundles/language-service.umd.js.map +1 -1
- package/bundles/language-service.umd.min.js +14 -14
- package/bundles/language-service.umd.min.js.map +1 -1
- package/esm2015/language-service.js +3 -3
- package/esm2015/language-service.js.map +1 -1
- package/esm5/language-service.js +3 -3
- package/esm5/language-service.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v5.2.
|
|
2
|
+
* @license Angular v5.2.6
|
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -59,7 +59,7 @@ var __assign = Object.assign || function __assign(t) {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* @license Angular v5.2.
|
|
62
|
+
* @license Angular v5.2.6
|
|
63
63
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
64
64
|
* License: MIT
|
|
65
65
|
*/
|
|
@@ -691,7 +691,7 @@ var Version = /** @class */ (function () {
|
|
|
691
691
|
/**
|
|
692
692
|
* \@stable
|
|
693
693
|
*/
|
|
694
|
-
var VERSION$1 = new Version('5.2.
|
|
694
|
+
var VERSION$1 = new Version('5.2.6');
|
|
695
695
|
|
|
696
696
|
/**
|
|
697
697
|
* @fileoverview added by tsickle
|
|
@@ -6815,7 +6815,8 @@ var _ParseAST = /** @class */ (function () {
|
|
|
6815
6815
|
switch (operator) {
|
|
6816
6816
|
case '+':
|
|
6817
6817
|
this.advance();
|
|
6818
|
-
|
|
6818
|
+
result = this.parsePrefix();
|
|
6819
|
+
return new Binary(this.span(start), '-', result, new LiteralPrimitive(new ParseSpan(start, start), 0));
|
|
6819
6820
|
case '-':
|
|
6820
6821
|
this.advance();
|
|
6821
6822
|
result = this.parsePrefix();
|
|
@@ -39223,6 +39224,8 @@ var CompilerHostAdapter = /** @class */ (function () {
|
|
|
39223
39224
|
this.collector = new collector.MetadataCollector();
|
|
39224
39225
|
}
|
|
39225
39226
|
CompilerHostAdapter.prototype.getMetadataFor = function (fileName) {
|
|
39227
|
+
if (!this.host.fileExists(fileName + '.ts'))
|
|
39228
|
+
return undefined;
|
|
39226
39229
|
var sourceFile = this.host.getSourceFile(fileName + '.ts', ts__default.ScriptTarget.Latest);
|
|
39227
39230
|
return sourceFile && this.collector.getMetadata(sourceFile);
|
|
39228
39231
|
};
|
|
@@ -42103,7 +42106,7 @@ function share() {
|
|
|
42103
42106
|
var share_3 = share;
|
|
42104
42107
|
|
|
42105
42108
|
/**
|
|
42106
|
-
* @license Angular v5.2.
|
|
42109
|
+
* @license Angular v5.2.6
|
|
42107
42110
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
42108
42111
|
* License: MIT
|
|
42109
42112
|
*/
|
|
@@ -42534,7 +42537,7 @@ var Version$1 = /** @class */ (function () {
|
|
|
42534
42537
|
/**
|
|
42535
42538
|
* \@stable
|
|
42536
42539
|
*/
|
|
42537
|
-
var VERSION$2 = new Version$1('5.2.
|
|
42540
|
+
var VERSION$2 = new Version$1('5.2.6');
|
|
42538
42541
|
|
|
42539
42542
|
/**
|
|
42540
42543
|
* @fileoverview added by tsickle
|
|
@@ -42648,6 +42651,7 @@ var __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefi
|
|
|
42648
42651
|
self instanceof WorkerGlobalScope && self;
|
|
42649
42652
|
var __global = typeof global !== 'undefined' && global;
|
|
42650
42653
|
var _global = __window || __global || __self;
|
|
42654
|
+
var promise = Promise.resolve(0);
|
|
42651
42655
|
var _symbolIterator = null;
|
|
42652
42656
|
/**
|
|
42653
42657
|
* @return {?}
|
|
@@ -42677,7 +42681,13 @@ function getSymbolIterator() {
|
|
|
42677
42681
|
* @return {?}
|
|
42678
42682
|
*/
|
|
42679
42683
|
function scheduleMicroTask(fn) {
|
|
42680
|
-
Zone
|
|
42684
|
+
if (typeof Zone === 'undefined') {
|
|
42685
|
+
// use promise to schedule microTask instead of use Zone
|
|
42686
|
+
promise.then(function () { fn && fn.apply(null, null); });
|
|
42687
|
+
}
|
|
42688
|
+
else {
|
|
42689
|
+
Zone.current.scheduleMicroTask('scheduleMicrotask', fn);
|
|
42690
|
+
}
|
|
42681
42691
|
}
|
|
42682
42692
|
/**
|
|
42683
42693
|
* @param {?} a
|
|
@@ -43774,9 +43784,11 @@ function isType(v) {
|
|
|
43774
43784
|
* found in the LICENSE file at https://angular.io/license
|
|
43775
43785
|
*/
|
|
43776
43786
|
/**
|
|
43777
|
-
* Attention:
|
|
43787
|
+
* Attention: These regex has to hold even if the code is minified!
|
|
43778
43788
|
*/
|
|
43779
43789
|
var DELEGATE_CTOR = /^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/;
|
|
43790
|
+
var INHERITED_CLASS = /^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{/;
|
|
43791
|
+
var INHERITED_CLASS_WITH_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{[\s\S]*constructor\s*\(/;
|
|
43780
43792
|
var ReflectionCapabilities = /** @class */ (function () {
|
|
43781
43793
|
function ReflectionCapabilities(reflect) {
|
|
43782
43794
|
this._reflect = reflect || _global['Reflect'];
|
|
@@ -43856,6 +43868,7 @@ var ReflectionCapabilities = /** @class */ (function () {
|
|
|
43856
43868
|
* @return {?}
|
|
43857
43869
|
*/
|
|
43858
43870
|
function (type, parentCtor) {
|
|
43871
|
+
var /** @type {?} */ typeStr = type.toString();
|
|
43859
43872
|
// If we have no decorators, we only have function.length as metadata.
|
|
43860
43873
|
// In that case, to detect whether a child class declared an own constructor or not,
|
|
43861
43874
|
// we need to look inside of that constructor to check whether it is
|
|
@@ -43863,7 +43876,8 @@ var ReflectionCapabilities = /** @class */ (function () {
|
|
|
43863
43876
|
// This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439
|
|
43864
43877
|
// that sets 'design:paramtypes' to []
|
|
43865
43878
|
// if a class inherits from another class but has no ctor declared itself.
|
|
43866
|
-
if (DELEGATE_CTOR.exec(
|
|
43879
|
+
if (DELEGATE_CTOR.exec(typeStr) ||
|
|
43880
|
+
(INHERITED_CLASS.exec(typeStr) && !INHERITED_CLASS_WITH_CTOR.exec(typeStr))) {
|
|
43867
43881
|
return null;
|
|
43868
43882
|
}
|
|
43869
43883
|
// Prefer the direct API.
|
|
@@ -44161,7 +44175,7 @@ function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
|
|
|
44161
44175
|
* @return {?}
|
|
44162
44176
|
*/
|
|
44163
44177
|
function getParentCtor(ctor) {
|
|
44164
|
-
var /** @type {?} */ parentProto = Object.getPrototypeOf(ctor.prototype);
|
|
44178
|
+
var /** @type {?} */ parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;
|
|
44165
44179
|
var /** @type {?} */ parentCtor = parentProto ? parentProto.constructor : null;
|
|
44166
44180
|
// Note: We always use `Object` as the null value
|
|
44167
44181
|
// to simplify checking later on.
|
|
@@ -46053,7 +46067,11 @@ var EventEmitter = /** @class */ (function (_super) {
|
|
|
46053
46067
|
this.__isAsync ? function () { setTimeout(function () { return complete(); }); } : function () { complete(); };
|
|
46054
46068
|
}
|
|
46055
46069
|
}
|
|
46056
|
-
|
|
46070
|
+
var /** @type {?} */ sink = _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn);
|
|
46071
|
+
if (generatorOrNext instanceof Subscription_2) {
|
|
46072
|
+
generatorOrNext.add(sink);
|
|
46073
|
+
}
|
|
46074
|
+
return sink;
|
|
46057
46075
|
};
|
|
46058
46076
|
return EventEmitter;
|
|
46059
46077
|
}(Subject_2));
|
|
@@ -47815,6 +47833,7 @@ var QueryList = /** @class */ (function () {
|
|
|
47815
47833
|
this.dirty = true;
|
|
47816
47834
|
this._results = [];
|
|
47817
47835
|
this.changes = new EventEmitter();
|
|
47836
|
+
this.length = 0;
|
|
47818
47837
|
}
|
|
47819
47838
|
/**
|
|
47820
47839
|
* See
|
|
@@ -51244,7 +51263,7 @@ function checkAndUpdateBinding(view, def, bindingIdx, value) {
|
|
|
51244
51263
|
function checkBindingNoChanges(view, def, bindingIdx, value) {
|
|
51245
51264
|
var /** @type {?} */ oldValue = view.oldValues[def.bindingIndex + bindingIdx];
|
|
51246
51265
|
if ((view.state & 1 /* BeforeFirstCheck */) || !devModeEqual(oldValue, value)) {
|
|
51247
|
-
var /** @type {?} */ bindingName = def.bindings[
|
|
51266
|
+
var /** @type {?} */ bindingName = def.bindings[bindingIdx].name;
|
|
51248
51267
|
throw expressionChangedAfterItHasBeenCheckedError(Services.createDebugContext(view, def.nodeIndex), bindingName + ": " + oldValue, bindingName + ": " + value, (view.state & 1 /* BeforeFirstCheck */) !== 0);
|
|
51249
51268
|
}
|
|
51250
51269
|
}
|
|
@@ -56764,7 +56783,7 @@ function initViewStaticData(viewIndex, parent) {
|
|
|
56764
56783
|
var NO_CHANGE = /** @type {?} */ ({});
|
|
56765
56784
|
|
|
56766
56785
|
/**
|
|
56767
|
-
* @license Angular v5.2.
|
|
56786
|
+
* @license Angular v5.2.6
|
|
56768
56787
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
56769
56788
|
* License: MIT
|
|
56770
56789
|
*/
|
|
@@ -58505,7 +58524,7 @@ var ReflectorHost = /** @class */ (function () {
|
|
|
58505
58524
|
throw new Error('Resolution of relative paths requires a containing file.');
|
|
58506
58525
|
}
|
|
58507
58526
|
// Any containing file gives the same result for absolute imports
|
|
58508
|
-
containingFile = path.join(this.options.basePath, 'index.ts');
|
|
58527
|
+
containingFile = path.join(this.options.basePath, 'index.ts').replace(/\\/g, '/');
|
|
58509
58528
|
}
|
|
58510
58529
|
var resolved = ts.resolveModuleName(moduleName, containingFile, this.options, this.hostAdapter)
|
|
58511
58530
|
.resolvedModule;
|
|
@@ -59413,7 +59432,7 @@ function create(info /* ts.server.PluginCreateInfo */) {
|
|
|
59413
59432
|
/**
|
|
59414
59433
|
* @stable
|
|
59415
59434
|
*/
|
|
59416
|
-
var VERSION = new Version$1('5.2.
|
|
59435
|
+
var VERSION = new Version$1('5.2.6');
|
|
59417
59436
|
|
|
59418
59437
|
exports.createLanguageService = createLanguageService;
|
|
59419
59438
|
exports.TypeScriptServiceHost = TypeScriptServiceHost;
|