@angular/language-service 5.2.5 → 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 +16 -10
- package/bundles/language-service.umd.js.map +1 -1
- package/bundles/language-service.umd.min.js +9 -9
- package/bundles/language-service.umd.min.js.map +1 -1
- package/esm2015/language-service.js +2 -2
- package/esm2015/language-service.js.map +1 -1
- package/esm5/language-service.js +2 -2
- 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
|
|
@@ -39224,6 +39224,8 @@ var CompilerHostAdapter = /** @class */ (function () {
|
|
|
39224
39224
|
this.collector = new collector.MetadataCollector();
|
|
39225
39225
|
}
|
|
39226
39226
|
CompilerHostAdapter.prototype.getMetadataFor = function (fileName) {
|
|
39227
|
+
if (!this.host.fileExists(fileName + '.ts'))
|
|
39228
|
+
return undefined;
|
|
39227
39229
|
var sourceFile = this.host.getSourceFile(fileName + '.ts', ts__default.ScriptTarget.Latest);
|
|
39228
39230
|
return sourceFile && this.collector.getMetadata(sourceFile);
|
|
39229
39231
|
};
|
|
@@ -42104,7 +42106,7 @@ function share() {
|
|
|
42104
42106
|
var share_3 = share;
|
|
42105
42107
|
|
|
42106
42108
|
/**
|
|
42107
|
-
* @license Angular v5.2.
|
|
42109
|
+
* @license Angular v5.2.6
|
|
42108
42110
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
42109
42111
|
* License: MIT
|
|
42110
42112
|
*/
|
|
@@ -42535,7 +42537,7 @@ var Version$1 = /** @class */ (function () {
|
|
|
42535
42537
|
/**
|
|
42536
42538
|
* \@stable
|
|
42537
42539
|
*/
|
|
42538
|
-
var VERSION$2 = new Version$1('5.2.
|
|
42540
|
+
var VERSION$2 = new Version$1('5.2.6');
|
|
42539
42541
|
|
|
42540
42542
|
/**
|
|
42541
42543
|
* @fileoverview added by tsickle
|
|
@@ -43782,9 +43784,11 @@ function isType(v) {
|
|
|
43782
43784
|
* found in the LICENSE file at https://angular.io/license
|
|
43783
43785
|
*/
|
|
43784
43786
|
/**
|
|
43785
|
-
* Attention:
|
|
43787
|
+
* Attention: These regex has to hold even if the code is minified!
|
|
43786
43788
|
*/
|
|
43787
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*\(/;
|
|
43788
43792
|
var ReflectionCapabilities = /** @class */ (function () {
|
|
43789
43793
|
function ReflectionCapabilities(reflect) {
|
|
43790
43794
|
this._reflect = reflect || _global['Reflect'];
|
|
@@ -43864,6 +43868,7 @@ var ReflectionCapabilities = /** @class */ (function () {
|
|
|
43864
43868
|
* @return {?}
|
|
43865
43869
|
*/
|
|
43866
43870
|
function (type, parentCtor) {
|
|
43871
|
+
var /** @type {?} */ typeStr = type.toString();
|
|
43867
43872
|
// If we have no decorators, we only have function.length as metadata.
|
|
43868
43873
|
// In that case, to detect whether a child class declared an own constructor or not,
|
|
43869
43874
|
// we need to look inside of that constructor to check whether it is
|
|
@@ -43871,7 +43876,8 @@ var ReflectionCapabilities = /** @class */ (function () {
|
|
|
43871
43876
|
// This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439
|
|
43872
43877
|
// that sets 'design:paramtypes' to []
|
|
43873
43878
|
// if a class inherits from another class but has no ctor declared itself.
|
|
43874
|
-
if (DELEGATE_CTOR.exec(
|
|
43879
|
+
if (DELEGATE_CTOR.exec(typeStr) ||
|
|
43880
|
+
(INHERITED_CLASS.exec(typeStr) && !INHERITED_CLASS_WITH_CTOR.exec(typeStr))) {
|
|
43875
43881
|
return null;
|
|
43876
43882
|
}
|
|
43877
43883
|
// Prefer the direct API.
|
|
@@ -44169,7 +44175,7 @@ function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
|
|
|
44169
44175
|
* @return {?}
|
|
44170
44176
|
*/
|
|
44171
44177
|
function getParentCtor(ctor) {
|
|
44172
|
-
var /** @type {?} */ parentProto = Object.getPrototypeOf(ctor.prototype);
|
|
44178
|
+
var /** @type {?} */ parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;
|
|
44173
44179
|
var /** @type {?} */ parentCtor = parentProto ? parentProto.constructor : null;
|
|
44174
44180
|
// Note: We always use `Object` as the null value
|
|
44175
44181
|
// to simplify checking later on.
|
|
@@ -56777,7 +56783,7 @@ function initViewStaticData(viewIndex, parent) {
|
|
|
56777
56783
|
var NO_CHANGE = /** @type {?} */ ({});
|
|
56778
56784
|
|
|
56779
56785
|
/**
|
|
56780
|
-
* @license Angular v5.2.
|
|
56786
|
+
* @license Angular v5.2.6
|
|
56781
56787
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
56782
56788
|
* License: MIT
|
|
56783
56789
|
*/
|
|
@@ -59426,7 +59432,7 @@ function create(info /* ts.server.PluginCreateInfo */) {
|
|
|
59426
59432
|
/**
|
|
59427
59433
|
* @stable
|
|
59428
59434
|
*/
|
|
59429
|
-
var VERSION = new Version$1('5.2.
|
|
59435
|
+
var VERSION = new Version$1('5.2.6');
|
|
59430
59436
|
|
|
59431
59437
|
exports.createLanguageService = createLanguageService;
|
|
59432
59438
|
exports.TypeScriptServiceHost = TypeScriptServiceHost;
|