@angular/language-service 5.2.7 → 5.2.11

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v5.2.7
2
+ * @license Angular v5.2.11
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.7
62
+ * @license Angular v5.2.11
63
63
  * (c) 2010-2018 Google, Inc. https://angular.io/
64
64
  * License: MIT
65
65
  */
@@ -294,6 +294,7 @@ MissingTranslationStrategy[MissingTranslationStrategy.Warning] = "Warning";
294
294
  MissingTranslationStrategy[MissingTranslationStrategy.Ignore] = "Ignore";
295
295
  /**
296
296
  * @record
297
+ * @template T
297
298
  */
298
299
  function MetadataFactory() { }
299
300
  /**
@@ -691,7 +692,7 @@ var Version = /** @class */ (function () {
691
692
  /**
692
693
  * \@stable
693
694
  */
694
- var VERSION$1 = new Version('5.2.7');
695
+ var VERSION$1 = new Version('5.2.11');
695
696
 
696
697
  /**
697
698
  * @fileoverview added by tsickle
@@ -2142,6 +2143,7 @@ function templateJitUrl(ngModuleType, compMeta) {
2142
2143
  * The path to the node at offset 9 would be `['+' at 1-10, '+' at 7-10,
2143
2144
  * 'c' at 9-10]` and the path the node at offset 1 would be
2144
2145
  * `['+' at 1-10, 'a' at 1-2]`.
2146
+ * @template T
2145
2147
  */
2146
2148
  var AstPath = /** @class */ (function () {
2147
2149
  function AstPath(path$$1, position) {
@@ -11554,7 +11556,7 @@ var Declaration = /** @class */ (function () {
11554
11556
  var _this = this;
11555
11557
  this.attrs = {};
11556
11558
  Object.keys(unescapedAttrs).forEach(function (k) {
11557
- _this.attrs[k] = _escapeXml(unescapedAttrs[k]);
11559
+ _this.attrs[k] = escapeXml(unescapedAttrs[k]);
11558
11560
  });
11559
11561
  }
11560
11562
  /**
@@ -11593,7 +11595,7 @@ var Tag = /** @class */ (function () {
11593
11595
  this.children = children;
11594
11596
  this.attrs = {};
11595
11597
  Object.keys(unescapedAttrs).forEach(function (k) {
11596
- _this.attrs[k] = _escapeXml(unescapedAttrs[k]);
11598
+ _this.attrs[k] = escapeXml(unescapedAttrs[k]);
11597
11599
  });
11598
11600
  }
11599
11601
  /**
@@ -11609,7 +11611,7 @@ var Tag = /** @class */ (function () {
11609
11611
  }());
11610
11612
  var Text$2 = /** @class */ (function () {
11611
11613
  function Text(unescapedValue) {
11612
- this.value = _escapeXml(unescapedValue);
11614
+ this.value = escapeXml(unescapedValue);
11613
11615
  }
11614
11616
  /**
11615
11617
  * @param {?} visitor
@@ -11641,7 +11643,7 @@ var _ESCAPED_CHARS = [
11641
11643
  * @param {?} text
11642
11644
  * @return {?}
11643
11645
  */
11644
- function _escapeXml(text) {
11646
+ function escapeXml(text) {
11645
11647
  return _ESCAPED_CHARS.reduce(function (text, entry) { return text.replace(entry[0], entry[1]); }, text);
11646
11648
  }
11647
11649
 
@@ -13556,7 +13558,11 @@ var I18nToHtmlVisitor = /** @class */ (function () {
13556
13558
  * @param {?=} context
13557
13559
  * @return {?}
13558
13560
  */
13559
- function (text, context) { return text.value; };
13561
+ function (text, context) {
13562
+ // `convert()` uses an `HtmlParser` to return `html.Node`s
13563
+ // we should then make sure that any special characters are escaped
13564
+ return escapeXml(text.value);
13565
+ };
13560
13566
  /**
13561
13567
  * @param {?} container
13562
13568
  * @param {?=} context
@@ -32997,10 +33003,12 @@ function createAotCompiler(compilerHost, options, errorCollector) {
32997
33003
  */
32998
33004
  /**
32999
33005
  * @record
33006
+ * @template T
33000
33007
  */
33001
33008
 
33002
33009
  /**
33003
33010
  * @abstract
33011
+ * @template T
33004
33012
  */
33005
33013
  var SummaryResolver = /** @class */ (function () {
33006
33014
  function SummaryResolver() {
@@ -42106,7 +42114,7 @@ function share() {
42106
42114
  var share_3 = share;
42107
42115
 
42108
42116
  /**
42109
- * @license Angular v5.2.7
42117
+ * @license Angular v5.2.11
42110
42118
  * (c) 2010-2018 Google, Inc. https://angular.io/
42111
42119
  * License: MIT
42112
42120
  */
@@ -42142,6 +42150,7 @@ var share_3 = share;
42142
42150
  * {\@example core/di/ts/injector_spec.ts region='InjectionToken'}
42143
42151
  *
42144
42152
  * \@stable
42153
+ * @template T
42145
42154
  */
42146
42155
  var InjectionToken = /** @class */ (function () {
42147
42156
  function InjectionToken(_desc) {
@@ -42537,7 +42546,7 @@ var Version$1 = /** @class */ (function () {
42537
42546
  /**
42538
42547
  * \@stable
42539
42548
  */
42540
- var VERSION$2 = new Version$1('5.2.7');
42549
+ var VERSION$2 = new Version$1('5.2.11');
42541
42550
 
42542
42551
  /**
42543
42552
  * @fileoverview added by tsickle
@@ -45677,6 +45686,7 @@ var CompilerFactory = /** @class */ (function () {
45677
45686
  * method.
45678
45687
  * \@stable
45679
45688
  * @abstract
45689
+ * @template C
45680
45690
  */
45681
45691
  var ComponentRef = /** @class */ (function () {
45682
45692
  function ComponentRef() {
@@ -45686,6 +45696,7 @@ var ComponentRef = /** @class */ (function () {
45686
45696
  /**
45687
45697
  * \@stable
45688
45698
  * @abstract
45699
+ * @template C
45689
45700
  */
45690
45701
  var ComponentFactory = /** @class */ (function () {
45691
45702
  function ComponentFactory() {
@@ -45747,6 +45758,9 @@ var ComponentFactoryResolver = /** @class */ (function () {
45747
45758
  ComponentFactoryResolver.NULL = new _NullComponentFactoryResolver();
45748
45759
  return ComponentFactoryResolver;
45749
45760
  }());
45761
+ /**
45762
+ * @template C
45763
+ */
45750
45764
  var ComponentFactoryBoundToModule = /** @class */ (function (_super) {
45751
45765
  __extends(ComponentFactoryBoundToModule, _super);
45752
45766
  function ComponentFactoryBoundToModule(factory, ngModule) {
@@ -45799,6 +45813,7 @@ var ComponentFactoryBoundToModule = /** @class */ (function (_super) {
45799
45813
  *
45800
45814
  * \@stable
45801
45815
  * @abstract
45816
+ * @template T
45802
45817
  */
45803
45818
  var NgModuleRef = /** @class */ (function () {
45804
45819
  function NgModuleRef() {
@@ -45807,11 +45822,13 @@ var NgModuleRef = /** @class */ (function () {
45807
45822
  }());
45808
45823
  /**
45809
45824
  * @record
45825
+ * @template T
45810
45826
  */
45811
45827
 
45812
45828
  /**
45813
45829
  * \@experimental
45814
45830
  * @abstract
45831
+ * @template T
45815
45832
  */
45816
45833
  var NgModuleFactory = /** @class */ (function () {
45817
45834
  function NgModuleFactory() {
@@ -46001,6 +46018,7 @@ var wtfLeave = wtfEnabled ? leave : function (s, r) { return r; };
46001
46018
  *
46002
46019
  * Once a reference implementation of the spec is available, switch to it.
46003
46020
  * \@stable
46021
+ * @template T
46004
46022
  */
46005
46023
  var EventEmitter = /** @class */ (function (_super) {
46006
46024
  __extends(EventEmitter, _super);
@@ -47827,6 +47845,7 @@ var ElementRef = /** @class */ (function () {
47827
47845
  * }
47828
47846
  * ```
47829
47847
  * \@stable
47848
+ * @template T
47830
47849
  */
47831
47850
  var QueryList = /** @class */ (function () {
47832
47851
  function QueryList() {
@@ -48054,6 +48073,7 @@ function flatten$2(list) {
48054
48073
  * createEmbeddedView}, which will create the View and attach it to the View Container.
48055
48074
  * \@stable
48056
48075
  * @abstract
48076
+ * @template C
48057
48077
  */
48058
48078
  var TemplateRef = /** @class */ (function () {
48059
48079
  function TemplateRef() {
@@ -48194,6 +48214,7 @@ var ViewRef = /** @class */ (function (_super) {
48194
48214
  * ```
48195
48215
  * \@experimental
48196
48216
  * @abstract
48217
+ * @template C
48197
48218
  */
48198
48219
  var EmbeddedViewRef = /** @class */ (function (_super) {
48199
48220
  __extends(EmbeddedViewRef, _super);
@@ -48519,6 +48540,7 @@ function removeDebugNodeFromIndex(node) {
48519
48540
  *
48520
48541
  * \@experimental All debugging apis are currently experimental.
48521
48542
  * @record
48543
+ * @template T
48522
48544
  */
48523
48545
 
48524
48546
  /**
@@ -48746,6 +48768,7 @@ var DefaultIterableDifferFactory = /** @class */ (function () {
48746
48768
  var trackByIdentity = function (index, item) { return item; };
48747
48769
  /**
48748
48770
  * @deprecated v4.0.0 - Should not be part of public API.
48771
+ * @template V
48749
48772
  */
48750
48773
  var DefaultIterableDiffer = /** @class */ (function () {
48751
48774
  function DefaultIterableDiffer(trackByFn) {
@@ -49052,7 +49075,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
49052
49075
  this._movesHead = this._movesTail = null;
49053
49076
  this._removalsHead = this._removalsTail = null;
49054
49077
  this._identityChangesHead = this._identityChangesTail = null;
49055
- // todo(vicb) when assert gets supported
49078
+ // TODO(vicb): when assert gets supported
49056
49079
  // assert(!this.isDirty);
49057
49080
  }
49058
49081
  };
@@ -49363,12 +49386,12 @@ var DefaultIterableDiffer = /** @class */ (function () {
49363
49386
  function (record, prevRecord, index) {
49364
49387
  this._insertAfter(record, prevRecord, index);
49365
49388
  if (this._additionsTail === null) {
49366
- // todo(vicb)
49389
+ // TODO(vicb):
49367
49390
  // assert(this._additionsHead === null);
49368
49391
  this._additionsTail = this._additionsHead = record;
49369
49392
  }
49370
49393
  else {
49371
- // todo(vicb)
49394
+ // TODO(vicb):
49372
49395
  // assert(_additionsTail._nextAdded === null);
49373
49396
  // assert(record._nextAdded === null);
49374
49397
  this._additionsTail = this._additionsTail._nextAdded = record;
@@ -49391,12 +49414,12 @@ var DefaultIterableDiffer = /** @class */ (function () {
49391
49414
  * @return {?}
49392
49415
  */
49393
49416
  function (record, prevRecord, index) {
49394
- // todo(vicb)
49417
+ // TODO(vicb):
49395
49418
  // assert(record != prevRecord);
49396
49419
  // assert(record._next === null);
49397
49420
  // assert(record._prev === null);
49398
49421
  var /** @type {?} */ next = prevRecord === null ? this._itHead : prevRecord._next;
49399
- // todo(vicb)
49422
+ // TODO(vicb):
49400
49423
  // assert(next != record);
49401
49424
  // assert(prevRecord != record);
49402
49425
  record._next = next;
@@ -49451,7 +49474,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
49451
49474
  }
49452
49475
  var /** @type {?} */ prev = record._prev;
49453
49476
  var /** @type {?} */ next = record._next;
49454
- // todo(vicb)
49477
+ // TODO(vicb):
49455
49478
  // assert((record._prev = null) === null);
49456
49479
  // assert((record._next = null) === null);
49457
49480
  if (prev === null) {
@@ -49482,18 +49505,18 @@ var DefaultIterableDiffer = /** @class */ (function () {
49482
49505
  * @return {?}
49483
49506
  */
49484
49507
  function (record, toIndex) {
49485
- // todo(vicb)
49508
+ // TODO(vicb):
49486
49509
  // assert(record._nextMoved === null);
49487
49510
  if (record.previousIndex === toIndex) {
49488
49511
  return record;
49489
49512
  }
49490
49513
  if (this._movesTail === null) {
49491
- // todo(vicb)
49514
+ // TODO(vicb):
49492
49515
  // assert(_movesHead === null);
49493
49516
  this._movesTail = this._movesHead = record;
49494
49517
  }
49495
49518
  else {
49496
- // todo(vicb)
49519
+ // TODO(vicb):
49497
49520
  // assert(_movesTail._nextMoved === null);
49498
49521
  this._movesTail = this._movesTail._nextMoved = record;
49499
49522
  }
@@ -49515,13 +49538,13 @@ var DefaultIterableDiffer = /** @class */ (function () {
49515
49538
  record.currentIndex = null;
49516
49539
  record._nextRemoved = null;
49517
49540
  if (this._removalsTail === null) {
49518
- // todo(vicb)
49541
+ // TODO(vicb):
49519
49542
  // assert(_removalsHead === null);
49520
49543
  this._removalsTail = this._removalsHead = record;
49521
49544
  record._prevRemoved = null;
49522
49545
  }
49523
49546
  else {
49524
- // todo(vicb)
49547
+ // TODO(vicb):
49525
49548
  // assert(_removalsTail._nextRemoved === null);
49526
49549
  // assert(record._nextRemoved === null);
49527
49550
  record._prevRemoved = this._removalsTail;
@@ -49556,6 +49579,7 @@ var DefaultIterableDiffer = /** @class */ (function () {
49556
49579
  }());
49557
49580
  /**
49558
49581
  * \@stable
49582
+ * @template V
49559
49583
  */
49560
49584
  var IterableChangeRecord_ = /** @class */ (function () {
49561
49585
  function IterableChangeRecord_(item, trackById) {
@@ -49606,6 +49630,9 @@ var IterableChangeRecord_ = /** @class */ (function () {
49606
49630
  }
49607
49631
  return IterableChangeRecord_;
49608
49632
  }());
49633
+ /**
49634
+ * @template V
49635
+ */
49609
49636
  var _DuplicateItemRecordList = /** @class */ (function () {
49610
49637
  function _DuplicateItemRecordList() {
49611
49638
  /**
@@ -49644,7 +49671,7 @@ var _DuplicateItemRecordList = /** @class */ (function () {
49644
49671
  }
49645
49672
  else {
49646
49673
  /** @type {?} */ ((
49647
- // todo(vicb)
49674
+ // TODO(vicb):
49648
49675
  // assert(record.item == _head.item ||
49649
49676
  // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);
49650
49677
  this._tail))._nextDup = record;
@@ -49695,7 +49722,7 @@ var _DuplicateItemRecordList = /** @class */ (function () {
49695
49722
  * @return {?}
49696
49723
  */
49697
49724
  function (record) {
49698
- // todo(vicb)
49725
+ // TODO(vicb):
49699
49726
  // assert(() {
49700
49727
  // // verify that the record being removed is in the list.
49701
49728
  // for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {
@@ -49721,6 +49748,9 @@ var _DuplicateItemRecordList = /** @class */ (function () {
49721
49748
  };
49722
49749
  return _DuplicateItemRecordList;
49723
49750
  }());
49751
+ /**
49752
+ * @template V
49753
+ */
49724
49754
  var _DuplicateMap = /** @class */ (function () {
49725
49755
  function _DuplicateMap() {
49726
49756
  this.map = new Map();
@@ -49847,6 +49877,9 @@ function getPreviousIndex(item, addRemoveOffset, moveOffsets) {
49847
49877
  * Use of this source code is governed by an MIT-style license that can be
49848
49878
  * found in the LICENSE file at https://angular.io/license
49849
49879
  */
49880
+ /**
49881
+ * @template K, V
49882
+ */
49850
49883
  var DefaultKeyValueDifferFactory = /** @class */ (function () {
49851
49884
  function DefaultKeyValueDifferFactory() {
49852
49885
  }
@@ -49870,6 +49903,9 @@ var DefaultKeyValueDifferFactory = /** @class */ (function () {
49870
49903
  function () { return new DefaultKeyValueDiffer(); };
49871
49904
  return DefaultKeyValueDifferFactory;
49872
49905
  }());
49906
+ /**
49907
+ * @template K, V
49908
+ */
49873
49909
  var DefaultKeyValueDiffer = /** @class */ (function () {
49874
49910
  function DefaultKeyValueDiffer() {
49875
49911
  this._records = new Map();
@@ -50231,6 +50267,7 @@ var DefaultKeyValueDiffer = /** @class */ (function () {
50231
50267
  }());
50232
50268
  /**
50233
50269
  * \@stable
50270
+ * @template K, V
50234
50271
  */
50235
50272
  var KeyValueChangeRecord_ = /** @class */ (function () {
50236
50273
  function KeyValueChangeRecord_(key) {
@@ -50282,6 +50319,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
50282
50319
  *
50283
50320
  * \@stable
50284
50321
  * @record
50322
+ * @template V
50285
50323
  */
50286
50324
 
50287
50325
  /**
@@ -50290,6 +50328,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
50290
50328
  *
50291
50329
  * \@stable
50292
50330
  * @record
50331
+ * @template V
50293
50332
  */
50294
50333
 
50295
50334
  /**
@@ -50297,11 +50336,13 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
50297
50336
  *
50298
50337
  * \@stable
50299
50338
  * @record
50339
+ * @template V
50300
50340
  */
50301
50341
 
50302
50342
  /**
50303
50343
  * @deprecated v4.0.0 - Use IterableChangeRecord instead.
50304
50344
  * @record
50345
+ * @template V
50305
50346
  */
50306
50347
 
50307
50348
  /**
@@ -50310,6 +50351,7 @@ var KeyValueChangeRecord_ = /** @class */ (function () {
50310
50351
  *
50311
50352
  * \@stable
50312
50353
  * @record
50354
+ * @template T
50313
50355
  */
50314
50356
 
50315
50357
  /**
@@ -50467,6 +50509,7 @@ function getTypeNameForDebugging(type) {
50467
50509
  *
50468
50510
  * \@stable
50469
50511
  * @record
50512
+ * @template K, V
50470
50513
  */
50471
50514
 
50472
50515
  /**
@@ -50475,6 +50518,7 @@ function getTypeNameForDebugging(type) {
50475
50518
  *
50476
50519
  * \@stable
50477
50520
  * @record
50521
+ * @template K, V
50478
50522
  */
50479
50523
 
50480
50524
  /**
@@ -50482,6 +50526,7 @@ function getTypeNameForDebugging(type) {
50482
50526
  *
50483
50527
  * \@stable
50484
50528
  * @record
50529
+ * @template K, V
50485
50530
  */
50486
50531
 
50487
50532
  /**
@@ -50864,12 +50909,14 @@ var Sanitizer = /** @class */ (function () {
50864
50909
  * Use of this source code is governed by an MIT-style license that can be
50865
50910
  * found in the LICENSE file at https://angular.io/license
50866
50911
  */
50912
+ // unsupported: template constraints.
50867
50913
  /**
50868
50914
  * Factory for ViewDefinitions/NgModuleDefinitions.
50869
50915
  * We use a function so we can reexeute it in case an error happens and use the given logger
50870
50916
  * function to log the error from the definition of the node, which is shown in all browser
50871
50917
  * logs.
50872
50918
  * @record
50919
+ * @template D
50873
50920
  */
50874
50921
 
50875
50922
  /**
@@ -50879,8 +50926,10 @@ var Sanitizer = /** @class */ (function () {
50879
50926
  * @record
50880
50927
  */
50881
50928
 
50929
+ // unsupported: template constraints.
50882
50930
  /**
50883
50931
  * @record
50932
+ * @template DF
50884
50933
  */
50885
50934
 
50886
50935
  /**
@@ -56373,8 +56422,12 @@ function isDifferent(a, b) {
56373
56422
  /**
56374
56423
  * A predicate which determines if a given element/directive should be included in the query
56375
56424
  * @record
56425
+ * @template T
56376
56426
  */
56377
56427
 
56428
+ /**
56429
+ * @template T
56430
+ */
56378
56431
  var QueryList_ = /** @class */ (function () {
56379
56432
  function QueryList_() {
56380
56433
  this.dirty = false;
@@ -56783,7 +56836,7 @@ function initViewStaticData(viewIndex, parent) {
56783
56836
  var NO_CHANGE = /** @type {?} */ ({});
56784
56837
 
56785
56838
  /**
56786
- * @license Angular v5.2.7
56839
+ * @license Angular v5.2.11
56787
56840
  * (c) 2010-2018 Google, Inc. https://angular.io/
56788
56841
  * License: MIT
56789
56842
  */
@@ -59432,7 +59485,7 @@ function create(info /* ts.server.PluginCreateInfo */) {
59432
59485
  /**
59433
59486
  * @stable
59434
59487
  */
59435
- var VERSION = new Version$1('5.2.7');
59488
+ var VERSION = new Version$1('5.2.11');
59436
59489
 
59437
59490
  exports.createLanguageService = createLanguageService;
59438
59491
  exports.TypeScriptServiceHost = TypeScriptServiceHost;