@angular/language-service 5.2.1 → 5.2.5
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 +52 -46
- package/bundles/language-service.umd.js.map +1 -1
- package/bundles/language-service.umd.min.js +17 -17
- 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.5
|
|
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.5
|
|
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.5');
|
|
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();
|
|
@@ -11660,8 +11661,10 @@ var _XMLNS = 'urn:oasis:names:tc:xliff:document:1.2';
|
|
|
11660
11661
|
// TODO(vicb): make this a param (s/_/-/)
|
|
11661
11662
|
var _DEFAULT_SOURCE_LANG = 'en';
|
|
11662
11663
|
var _PLACEHOLDER_TAG = 'x';
|
|
11664
|
+
var _MARKER_TAG = 'mrk';
|
|
11663
11665
|
var _FILE_TAG = 'file';
|
|
11664
11666
|
var _SOURCE_TAG = 'source';
|
|
11667
|
+
var _SEGMENT_SOURCE_TAG = 'seg-source';
|
|
11665
11668
|
var _TARGET_TAG = 'target';
|
|
11666
11669
|
var _UNIT_TAG = 'trans-unit';
|
|
11667
11670
|
var _CONTEXT_GROUP_TAG = 'context-group';
|
|
@@ -11922,8 +11925,9 @@ var XliffParser = /** @class */ (function () {
|
|
|
11922
11925
|
}
|
|
11923
11926
|
}
|
|
11924
11927
|
break;
|
|
11928
|
+
// ignore those tags
|
|
11925
11929
|
case _SOURCE_TAG:
|
|
11926
|
-
|
|
11930
|
+
case _SEGMENT_SOURCE_TAG:
|
|
11927
11931
|
break;
|
|
11928
11932
|
case _TARGET_TAG:
|
|
11929
11933
|
var /** @type {?} */ innerTextStart = /** @type {?} */ ((element.startSourceSpan)).end.offset;
|
|
@@ -12032,8 +12036,7 @@ var XmlToI18n = /** @class */ (function () {
|
|
|
12032
12036
|
var /** @type {?} */ xmlIcu = new XmlParser().parse(message, url, true);
|
|
12033
12037
|
this._errors = xmlIcu.errors;
|
|
12034
12038
|
var /** @type {?} */ i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ?
|
|
12035
|
-
[] :
|
|
12036
|
-
visitAll(this, xmlIcu.rootNodes);
|
|
12039
|
+
[] : [].concat.apply([], visitAll(this, xmlIcu.rootNodes));
|
|
12037
12040
|
return {
|
|
12038
12041
|
i18nNodes: i18nNodes,
|
|
12039
12042
|
errors: this._errors,
|
|
@@ -12067,10 +12070,12 @@ var XmlToI18n = /** @class */ (function () {
|
|
|
12067
12070
|
return new Placeholder('', nameAttr.value, /** @type {?} */ ((el.sourceSpan)));
|
|
12068
12071
|
}
|
|
12069
12072
|
this._addError(el, "<" + _PLACEHOLDER_TAG + "> misses the \"id\" attribute");
|
|
12073
|
+
return null;
|
|
12070
12074
|
}
|
|
12071
|
-
|
|
12072
|
-
|
|
12075
|
+
if (el.name === _MARKER_TAG) {
|
|
12076
|
+
return [].concat.apply([], visitAll(this, el.children));
|
|
12073
12077
|
}
|
|
12078
|
+
this._addError(el, "Unexpected tag");
|
|
12074
12079
|
return null;
|
|
12075
12080
|
};
|
|
12076
12081
|
/**
|
|
@@ -12175,6 +12180,7 @@ var _XMLNS$1 = 'urn:oasis:names:tc:xliff:document:2.0';
|
|
|
12175
12180
|
var _DEFAULT_SOURCE_LANG$1 = 'en';
|
|
12176
12181
|
var _PLACEHOLDER_TAG$1 = 'ph';
|
|
12177
12182
|
var _PLACEHOLDER_SPANNING_TAG = 'pc';
|
|
12183
|
+
var _MARKER_TAG$1 = 'mrk';
|
|
12178
12184
|
var _XLIFF_TAG = 'xliff';
|
|
12179
12185
|
var _SOURCE_TAG$1 = 'source';
|
|
12180
12186
|
var _TARGET_TAG$1 = 'target';
|
|
@@ -12630,6 +12636,8 @@ var XmlToI18n$1 = /** @class */ (function () {
|
|
|
12630
12636
|
return nodes.concat.apply(nodes, [new Placeholder('', startId, el.sourceSpan)].concat(el.children.map(function (node) { return node.visit(_this, null); }), [new Placeholder('', endId, el.sourceSpan)]));
|
|
12631
12637
|
}
|
|
12632
12638
|
break;
|
|
12639
|
+
case _MARKER_TAG$1:
|
|
12640
|
+
return [].concat.apply([], visitAll(this, el.children));
|
|
12633
12641
|
default:
|
|
12634
12642
|
this._addError(el, "Unexpected tag");
|
|
12635
12643
|
}
|
|
@@ -22878,10 +22886,11 @@ var ShadowCss = /** @class */ (function () {
|
|
|
22878
22886
|
*/
|
|
22879
22887
|
function (cssText, selector, hostSelector) {
|
|
22880
22888
|
if (hostSelector === void 0) { hostSelector = ''; }
|
|
22881
|
-
var /** @type {?} */
|
|
22889
|
+
var /** @type {?} */ commentsWithHash = extractCommentsWithHash(cssText);
|
|
22882
22890
|
cssText = stripComments(cssText);
|
|
22883
22891
|
cssText = this._insertDirectives(cssText);
|
|
22884
|
-
|
|
22892
|
+
var /** @type {?} */ scopedCssText = this._scopeCssText(cssText, selector, hostSelector);
|
|
22893
|
+
return [scopedCssText].concat(commentsWithHash).join('\n');
|
|
22885
22894
|
};
|
|
22886
22895
|
/**
|
|
22887
22896
|
* @param {?} cssText
|
|
@@ -23381,15 +23390,13 @@ var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
|
23381
23390
|
function stripComments(input) {
|
|
23382
23391
|
return input.replace(_commentRe, '');
|
|
23383
23392
|
}
|
|
23384
|
-
|
|
23385
|
-
var _sourceMappingUrlRe = /\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//;
|
|
23393
|
+
var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
23386
23394
|
/**
|
|
23387
23395
|
* @param {?} input
|
|
23388
23396
|
* @return {?}
|
|
23389
23397
|
*/
|
|
23390
|
-
function
|
|
23391
|
-
|
|
23392
|
-
return matcher ? matcher[0] : '';
|
|
23398
|
+
function extractCommentsWithHash(input) {
|
|
23399
|
+
return input.match(_commentWithHashRe) || [];
|
|
23393
23400
|
}
|
|
23394
23401
|
var _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
23395
23402
|
var _curlyRe = /([{}])/g;
|
|
@@ -37530,9 +37537,6 @@ var Evaluator = /** @class */ (function () {
|
|
|
37530
37537
|
}
|
|
37531
37538
|
}
|
|
37532
37539
|
var args = arrayOrEmpty(callExpression.arguments).map(function (arg) { return _this.evaluateNode(arg); });
|
|
37533
|
-
if (!this.options.verboseInvalidExpression && args.some(schema.isMetadataError)) {
|
|
37534
|
-
return args.find(schema.isMetadataError);
|
|
37535
|
-
}
|
|
37536
37540
|
if (this.isFoldable(callExpression)) {
|
|
37537
37541
|
if (isMethodCallOf(callExpression, 'concat')) {
|
|
37538
37542
|
var arrayValue = this.evaluateNode(callExpression.expression.expression);
|
|
@@ -38246,7 +38250,7 @@ var MetadataCollector = /** @class */ (function () {
|
|
|
38246
38250
|
return identifier && (exportMap.get(identifier.text) || identifier.text);
|
|
38247
38251
|
};
|
|
38248
38252
|
var exportedName = function (node) { return exportedIdentifierName(node.name); };
|
|
38249
|
-
//
|
|
38253
|
+
// Pre-declare classes and functions
|
|
38250
38254
|
ts__default.forEachChild(sourceFile, function (node) {
|
|
38251
38255
|
switch (node.kind) {
|
|
38252
38256
|
case ts__default.SyntaxKind.ClassDeclaration:
|
|
@@ -38407,7 +38411,7 @@ var MetadataCollector = /** @class */ (function () {
|
|
|
38407
38411
|
}
|
|
38408
38412
|
else {
|
|
38409
38413
|
nextDefaultValue =
|
|
38410
|
-
recordEntry(errorSym('
|
|
38414
|
+
recordEntry(errorSym('Unsupported enum member name', member.name), node);
|
|
38411
38415
|
}
|
|
38412
38416
|
}
|
|
38413
38417
|
if (writtenMembers) {
|
|
@@ -42100,7 +42104,7 @@ function share() {
|
|
|
42100
42104
|
var share_3 = share;
|
|
42101
42105
|
|
|
42102
42106
|
/**
|
|
42103
|
-
* @license Angular v5.2.
|
|
42107
|
+
* @license Angular v5.2.5
|
|
42104
42108
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
42105
42109
|
* License: MIT
|
|
42106
42110
|
*/
|
|
@@ -42531,7 +42535,7 @@ var Version$1 = /** @class */ (function () {
|
|
|
42531
42535
|
/**
|
|
42532
42536
|
* \@stable
|
|
42533
42537
|
*/
|
|
42534
|
-
var VERSION$2 = new Version$1('5.2.
|
|
42538
|
+
var VERSION$2 = new Version$1('5.2.5');
|
|
42535
42539
|
|
|
42536
42540
|
/**
|
|
42537
42541
|
* @fileoverview added by tsickle
|
|
@@ -42645,6 +42649,7 @@ var __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefi
|
|
|
42645
42649
|
self instanceof WorkerGlobalScope && self;
|
|
42646
42650
|
var __global = typeof global !== 'undefined' && global;
|
|
42647
42651
|
var _global = __window || __global || __self;
|
|
42652
|
+
var promise = Promise.resolve(0);
|
|
42648
42653
|
var _symbolIterator = null;
|
|
42649
42654
|
/**
|
|
42650
42655
|
* @return {?}
|
|
@@ -42674,7 +42679,13 @@ function getSymbolIterator() {
|
|
|
42674
42679
|
* @return {?}
|
|
42675
42680
|
*/
|
|
42676
42681
|
function scheduleMicroTask(fn) {
|
|
42677
|
-
Zone
|
|
42682
|
+
if (typeof Zone === 'undefined') {
|
|
42683
|
+
// use promise to schedule microTask instead of use Zone
|
|
42684
|
+
promise.then(function () { fn && fn.apply(null, null); });
|
|
42685
|
+
}
|
|
42686
|
+
else {
|
|
42687
|
+
Zone.current.scheduleMicroTask('scheduleMicrotask', fn);
|
|
42688
|
+
}
|
|
42678
42689
|
}
|
|
42679
42690
|
/**
|
|
42680
42691
|
* @param {?} a
|
|
@@ -46050,7 +46061,11 @@ var EventEmitter = /** @class */ (function (_super) {
|
|
|
46050
46061
|
this.__isAsync ? function () { setTimeout(function () { return complete(); }); } : function () { complete(); };
|
|
46051
46062
|
}
|
|
46052
46063
|
}
|
|
46053
|
-
|
|
46064
|
+
var /** @type {?} */ sink = _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn);
|
|
46065
|
+
if (generatorOrNext instanceof Subscription_2) {
|
|
46066
|
+
generatorOrNext.add(sink);
|
|
46067
|
+
}
|
|
46068
|
+
return sink;
|
|
46054
46069
|
};
|
|
46055
46070
|
return EventEmitter;
|
|
46056
46071
|
}(Subject_2));
|
|
@@ -46674,23 +46689,13 @@ var Testability = /** @class */ (function () {
|
|
|
46674
46689
|
function () {
|
|
46675
46690
|
var _this = this;
|
|
46676
46691
|
if (this.isStable()) {
|
|
46677
|
-
|
|
46678
|
-
|
|
46679
|
-
|
|
46680
|
-
|
|
46681
|
-
|
|
46682
|
-
|
|
46683
|
-
|
|
46684
|
-
(/** @type {?} */ ((_this._callbacks.pop())))(_this._didWork);
|
|
46685
|
-
}
|
|
46686
|
-
_this._didWork = false;
|
|
46687
|
-
}
|
|
46688
|
-
});
|
|
46689
|
-
});
|
|
46690
|
-
}
|
|
46691
|
-
else {
|
|
46692
|
-
this._didWork = false;
|
|
46693
|
-
}
|
|
46692
|
+
// Schedules the call backs in a new frame so that it is always async.
|
|
46693
|
+
scheduleMicroTask(function () {
|
|
46694
|
+
while (_this._callbacks.length !== 0) {
|
|
46695
|
+
(/** @type {?} */ ((_this._callbacks.pop())))(_this._didWork);
|
|
46696
|
+
}
|
|
46697
|
+
_this._didWork = false;
|
|
46698
|
+
});
|
|
46694
46699
|
}
|
|
46695
46700
|
else {
|
|
46696
46701
|
// Not Ready
|
|
@@ -47822,6 +47827,7 @@ var QueryList = /** @class */ (function () {
|
|
|
47822
47827
|
this.dirty = true;
|
|
47823
47828
|
this._results = [];
|
|
47824
47829
|
this.changes = new EventEmitter();
|
|
47830
|
+
this.length = 0;
|
|
47825
47831
|
}
|
|
47826
47832
|
/**
|
|
47827
47833
|
* See
|
|
@@ -51251,7 +51257,7 @@ function checkAndUpdateBinding(view, def, bindingIdx, value) {
|
|
|
51251
51257
|
function checkBindingNoChanges(view, def, bindingIdx, value) {
|
|
51252
51258
|
var /** @type {?} */ oldValue = view.oldValues[def.bindingIndex + bindingIdx];
|
|
51253
51259
|
if ((view.state & 1 /* BeforeFirstCheck */) || !devModeEqual(oldValue, value)) {
|
|
51254
|
-
var /** @type {?} */ bindingName = def.bindings[
|
|
51260
|
+
var /** @type {?} */ bindingName = def.bindings[bindingIdx].name;
|
|
51255
51261
|
throw expressionChangedAfterItHasBeenCheckedError(Services.createDebugContext(view, def.nodeIndex), bindingName + ": " + oldValue, bindingName + ": " + value, (view.state & 1 /* BeforeFirstCheck */) !== 0);
|
|
51256
51262
|
}
|
|
51257
51263
|
}
|
|
@@ -56771,7 +56777,7 @@ function initViewStaticData(viewIndex, parent) {
|
|
|
56771
56777
|
var NO_CHANGE = /** @type {?} */ ({});
|
|
56772
56778
|
|
|
56773
56779
|
/**
|
|
56774
|
-
* @license Angular v5.2.
|
|
56780
|
+
* @license Angular v5.2.5
|
|
56775
56781
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
56776
56782
|
* License: MIT
|
|
56777
56783
|
*/
|
|
@@ -58512,7 +58518,7 @@ var ReflectorHost = /** @class */ (function () {
|
|
|
58512
58518
|
throw new Error('Resolution of relative paths requires a containing file.');
|
|
58513
58519
|
}
|
|
58514
58520
|
// Any containing file gives the same result for absolute imports
|
|
58515
|
-
containingFile = path.join(this.options.basePath, 'index.ts');
|
|
58521
|
+
containingFile = path.join(this.options.basePath, 'index.ts').replace(/\\/g, '/');
|
|
58516
58522
|
}
|
|
58517
58523
|
var resolved = ts.resolveModuleName(moduleName, containingFile, this.options, this.hostAdapter)
|
|
58518
58524
|
.resolvedModule;
|
|
@@ -59420,7 +59426,7 @@ function create(info /* ts.server.PluginCreateInfo */) {
|
|
|
59420
59426
|
/**
|
|
59421
59427
|
* @stable
|
|
59422
59428
|
*/
|
|
59423
|
-
var VERSION = new Version$1('5.2.
|
|
59429
|
+
var VERSION = new Version$1('5.2.5');
|
|
59424
59430
|
|
|
59425
59431
|
exports.createLanguageService = createLanguageService;
|
|
59426
59432
|
exports.TypeScriptServiceHost = TypeScriptServiceHost;
|