google-closure-compiler 20170423.0.0 → 20170910.0.0

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/compiler.jar CHANGED
Binary file
@@ -1522,7 +1522,8 @@ angular.$location.protocol = function() {};
1522
1522
  angular.$location.replace = function() {};
1523
1523
 
1524
1524
  /**
1525
- * @param {(string|Object.<string, string>)=} opt_search
1525
+ * @param {(string|Object.<string, string>|Object.<string, Array.<string>>)=}
1526
+ * opt_search
1526
1527
  * @param {?(string|Array.<string>|boolean)=} opt_paramValue
1527
1528
  * @return {(!Object|angular.$location)}
1528
1529
  */
@@ -1743,7 +1743,8 @@ angular.$location.protocol = function() {};
1743
1743
  angular.$location.replace = function() {};
1744
1744
 
1745
1745
  /**
1746
- * @param {(string|Object.<string, string>)=} opt_search
1746
+ * @param {(string|Object.<string, string>|Object.<string, Array.<string>>)=}
1747
+ * opt_search
1747
1748
  * @param {?(string|Array.<string>|boolean|number)=} opt_paramValue
1748
1749
  * @return {(!Object|angular.$location)}
1749
1750
  */
@@ -1636,7 +1636,8 @@ angular.$location.prototype.protocol = function() {};
1636
1636
  angular.$location.prototype.replace = function() {};
1637
1637
 
1638
1638
  /**
1639
- * @param {(string|Object.<string, string>)=} opt_search
1639
+ * @param {(string|Object.<string, string>|Object.<string, Array.<string>>)=}
1640
+ * opt_search
1640
1641
  * @param {?(string|Array.<string>|boolean|number)=} opt_paramValue
1641
1642
  * @return {(!Object|!angular.$location)}
1642
1643
  */
@@ -1573,11 +1573,14 @@ angular.$http.Config.prototype.responseType;
1573
1573
  /** @type {(number|!angular.$q.Promise|undefined)} */
1574
1574
  angular.$http.Config.prototype.timeout;
1575
1575
 
1576
+ /** @typedef {function(string=): (?string | !Object<string>)} */
1577
+ angular.$http.HeadersGetter;
1578
+
1576
1579
  /**
1577
1580
  * @type {
1578
1581
  * (undefined|
1579
- * function(?, Object):?|
1580
- * Array<function(?, Object):?>)
1582
+ * function(?, !angular.$http.HeadersGetter):?|
1583
+ * !Array<function(?, !angular.$http.HeadersGetter):?>)
1581
1584
  * }
1582
1585
  */
1583
1586
  angular.$http.Config.prototype.transformRequest;
@@ -1585,8 +1588,8 @@ angular.$http.Config.prototype.transformRequest;
1585
1588
  /**
1586
1589
  * @type {
1587
1590
  * (undefined|
1588
- * function(?, Object, Object):?|
1589
- * Array<function(?, Object, Object):?>)
1591
+ * function(?, !angular.$http.HeadersGetter, number):?|
1592
+ * !Array<function(?, !angular.$http.HeadersGetter, number):?>)
1590
1593
  * }
1591
1594
  */
1592
1595
  angular.$http.Config.prototype.transformResponse;
@@ -1877,7 +1880,8 @@ angular.$location.prototype.protocol = function() {};
1877
1880
  angular.$location.prototype.replace = function() {};
1878
1881
 
1879
1882
  /**
1880
- * @param {(string|Object.<string, string>)=} opt_search
1883
+ * @param {(string|Object.<string, string>|Object.<string, Array.<string>>)=}
1884
+ * opt_search
1881
1885
  * @param {?(string|Array.<string>|boolean|number)=} opt_paramValue
1882
1886
  * @return {(!Object|!angular.$location)}
1883
1887
  */
@@ -20,7 +20,6 @@
20
20
  *
21
21
  * TODO: Remaining Mocks:
22
22
  * $browser
23
- * $exceptionHandler
24
23
  * $log
25
24
  * angular.mock.TzDate
26
25
  * angular.mock.dump
@@ -265,3 +264,19 @@ angular.mock.$controller;
265
264
 
266
265
  /** @param {!Array|!Function} injectable */
267
266
  angular.mock.inject = function(injectable) {};
267
+
268
+
269
+ /** @interface */
270
+ angular.mock.$exceptionHandler = function() {};
271
+
272
+
273
+ /** @type {!Array<?>|undefined} */
274
+ angular.mock.$exceptionHandler.prototype.errors;
275
+
276
+
277
+ /** @interface */
278
+ angular.mock.$exceptionHandlerProvider = function() {};
279
+
280
+
281
+ /** @param {string} mode */
282
+ angular.mock.$exceptionHandlerProvider.prototype.mode = function(mode) {};
@@ -200,7 +200,7 @@ angular.reloadWithDebugInfo = function() {};
200
200
 
201
201
  /**
202
202
  * @param {Object|Array|Date|string|number|boolean} obj
203
- * @param {boolean=} opt_pretty
203
+ * @param {number|boolean=} opt_pretty
204
204
  * @return {string}
205
205
  */
206
206
  angular.toJson = function(obj, opt_pretty) {};
@@ -268,7 +268,7 @@ angular.Animation.prototype.addClass;
268
268
  angular.Animation.prototype.beforeRemoveClass;
269
269
 
270
270
  /**
271
- * @type {function(!angular.JQLite, string, string, !Function, !Object=):
271
+ * @type {function(!angular.JQLite, string, !Function, !Object=):
272
272
  * (!Function|undefined)|
273
273
  * undefined}
274
274
  */
@@ -1583,11 +1583,14 @@ angular.$http.Config.prototype.responseType;
1583
1583
  /** @type {(number|!angular.$q.Promise|undefined)} */
1584
1584
  angular.$http.Config.prototype.timeout;
1585
1585
 
1586
+ /** @typedef {function(string=): (?string | !Object<string>)} */
1587
+ angular.$http.HeadersGetter;
1588
+
1586
1589
  /**
1587
1590
  * @type {
1588
1591
  * (undefined|
1589
- * function(?, Object):?|
1590
- * Array<function(?, Object):?>)
1592
+ * function(?, !angular.$http.HeadersGetter):?|
1593
+ * !Array<function(?, !angular.$http.HeadersGetter):?>)
1591
1594
  * }
1592
1595
  */
1593
1596
  angular.$http.Config.prototype.transformRequest;
@@ -1595,8 +1598,8 @@ angular.$http.Config.prototype.transformRequest;
1595
1598
  /**
1596
1599
  * @type {
1597
1600
  * (undefined|
1598
- * function(?, Object, Object):?|
1599
- * Array<function(?, Object, Object):?>)
1601
+ * function(?, !angular.$http.HeadersGetter, number):?|
1602
+ * !Array<function(?, !angular.$http.HeadersGetter, number):?>)
1600
1603
  * }
1601
1604
  */
1602
1605
  angular.$http.Config.prototype.transformResponse;
@@ -1888,7 +1891,8 @@ angular.$location.prototype.protocol = function() {};
1888
1891
  angular.$location.prototype.replace = function() {};
1889
1892
 
1890
1893
  /**
1891
- * @param {(string|Object<string, string>)=} opt_search
1894
+ * @param {(string|Object.<string, string>|Object.<string, Array.<string>>)=}
1895
+ * opt_search
1892
1896
  * @param {?(string|Array<string>|boolean|number)=} opt_paramValue
1893
1897
  * @return {(!Object|!angular.$location)}
1894
1898
  */
@@ -2295,7 +2299,7 @@ angular.$routeProvider.Params.prototype.controller;
2295
2299
  /** @type {string|undefined} */
2296
2300
  angular.$routeProvider.Params.prototype.controllerAs;
2297
2301
 
2298
- /** @type {string|undefined} */
2302
+ /** @type {string|function(!Object<string, string>): string|undefined} */
2299
2303
  angular.$routeProvider.Params.prototype.template;
2300
2304
 
2301
2305
  /** @type {string|!Object|function(!Object<string,string>=)} */
@@ -40,7 +40,7 @@ md.$bottomSheet = function() {};
40
40
  * template: (string|undefined),
41
41
  * scope: (!Object|undefined),
42
42
  * preserveScope: (boolean|undefined),
43
- * controller: (!Function|string|undefined),
43
+ * controller: (!angular.Injectable|string|undefined),
44
44
  * locals: (!Object|undefined),
45
45
  * targetEvent: (!Object|undefined),
46
46
  * resolve: (!Object|undefined),
@@ -97,7 +97,7 @@ md.$dialog = function() {};
97
97
  * clickOutsideToClose: (boolean|undefined),
98
98
  * escapeToClose: (boolean|undefined),
99
99
  * focusOnOpen: (boolean|undefined),
100
- * controller: (Function|string|undefined),
100
+ * controller: (angular.Injectable|string|undefined),
101
101
  * locals: (Object|undefined),
102
102
  * bindToController: (boolean|undefined),
103
103
  * resolve: (Object|undefined),
@@ -446,9 +446,9 @@ md.$toast = function() {};
446
446
  * @typedef {{
447
447
  * templateUrl: (string|!Object|undefined),
448
448
  * template: (string|undefined),
449
- * hideDelay: (number|undefined),
449
+ * hideDelay: (boolean|number|undefined),
450
450
  * position: (string|undefined),
451
- * controller: (Function|string|undefined),
451
+ * controller: (angular.Injectable|string|undefined),
452
452
  * locals: (Object|undefined),
453
453
  * bindToController: (boolean|undefined),
454
454
  * resolve: (Object|undefined),
@@ -560,9 +560,10 @@ md.$toast.preset.prototype.toastClass = function(className) {};
560
560
 
561
561
 
562
562
  /**
563
+ * @param {!md.$toast.options=} options
563
564
  * @return {!md.$toast.preset}
564
565
  */
565
- md.$toast.prototype.simple = function() {};
566
+ md.$toast.prototype.simple = function(options) {};
566
567
 
567
568
  /******************************************************************************
568
569
  * $sidenav Service
@@ -639,6 +640,15 @@ md.$mdThemingProvider.prototype.theme = function(name, opt_parentTheme) {};
639
640
  /** @param {string} nonce */
640
641
  md.$mdThemingProvider.prototype.setNonce = function(nonce) {};
641
642
 
643
+ /** @param {string} styles */
644
+ md.$mdThemingProvider.prototype.registerStyles = function(styles) {};
645
+
646
+ /**
647
+ * @param {?Object=} options
648
+ * @return {!Function}
649
+ */
650
+ md.$mdThemingProvider.prototype.enableBrowserColor = function(options) {};
651
+
642
652
  /******************************************************************************
643
653
  * $mdTheming service
644
654
  *****************************************************************************/
@@ -711,6 +721,24 @@ md.$mdThemingProvider.Theme.prototype.warnPalette =
711
721
  */
712
722
  md.$mdThemingProvider.Theme.prototype.dark = function(opt_isDark) {};
713
723
 
724
+ /******************************************************************************
725
+ * $mdColors Service
726
+ *****************************************************************************/
727
+
728
+ /** @interface */
729
+ md.$mdColors = function() {};
730
+
731
+ /**
732
+ * @param {!angular.JQLite} element
733
+ * @param {?Object} colorExpression
734
+ */
735
+ md.$mdColors.prototype.applyThemeColors = function(element, colorExpression) {};
736
+
737
+ /**
738
+ * @param {string} expression
739
+ * @return {string}
740
+ */
741
+ md.$mdColors.prototype.getThemeColor = function(expression) {};
714
742
 
715
743
  /******************************************************************************
716
744
  * $mdIcon Service
@@ -785,6 +813,24 @@ md.$mdMenu = function() {};
785
813
  */
786
814
  md.$mdMenu.prototype.hide = function(opt_reason, opt_options) {};
787
815
 
816
+ /******************************************************************************
817
+ * $mdMenu that is provided to the scope of the trigger element so that the
818
+ * menu can be closed/opened from the template.
819
+ * https://material.angularjs.org/latest/api/directive/mdMenu
820
+ *****************************************************************************/
821
+
822
+ /** @interface */
823
+ md.menu = function() {};
824
+
825
+ /** @param {!Event=} opt_event */
826
+ md.menu.prototype.open = function(opt_event) {};
827
+
828
+ /**
829
+ * @param {boolean=} opt_skipFocus
830
+ * @param {*=} opt_closeOptions
831
+ */
832
+ md.menu.prototype.close = function(opt_skipFocus, opt_closeOptions) {};
833
+
788
834
  /******************************************************************************
789
835
  * $mdSelect Service
790
836
  *****************************************************************************/
@@ -938,7 +984,7 @@ md.$panel = function() {};
938
984
  * @typedef {{
939
985
  * template: (string|undefined),
940
986
  * templateUrl: (string|!Object|undefined),
941
- * controller: (Function|string|undefined),
987
+ * controller: (angular.Injectable|string|undefined),
942
988
  * controllerAs: (string|undefined),
943
989
  * locals: (!Object|undefined),
944
990
  * resolve: (!Object|undefined),
@@ -40,7 +40,7 @@ md.$bottomSheet = function() {};
40
40
  * template: (string|undefined),
41
41
  * scope: (!Object|undefined),
42
42
  * preserveScope: (boolean|undefined),
43
- * controller: (!Function|string|undefined),
43
+ * controller: (!angular.Injectable|string|undefined),
44
44
  * locals: (!Object|undefined),
45
45
  * targetEvent: (!Object|undefined),
46
46
  * resolve: (!Object|undefined),
@@ -89,7 +89,7 @@ md.$dialog = function() {};
89
89
  * hasBackdrop: (boolean|undefined),
90
90
  * clickOutsideToClose: (boolean|undefined),
91
91
  * escapeToClose: (boolean|undefined),
92
- * controller: (Function|string|undefined),
92
+ * controller: (angular.Injectable|string|undefined),
93
93
  * locals: (Object|undefined),
94
94
  * resolve: (Object|undefined),
95
95
  * controllerAs: (string|undefined),
@@ -411,7 +411,7 @@ md.$toast = function() {};
411
411
  * template: (string|undefined),
412
412
  * hideDelay: (number|undefined),
413
413
  * position: (string|undefined),
414
- * controller: (Function|string|undefined),
414
+ * controller: (angular.Injectable|string|undefined),
415
415
  * locals: (Object|undefined),
416
416
  * bindToController: (boolean|undefined),
417
417
  * resolve: (Object|undefined),
@@ -650,6 +650,24 @@ md.$mdThemingProvider.Theme.prototype.warnPalette =
650
650
  */
651
651
  md.$mdThemingProvider.Theme.prototype.dark = function(opt_isDark) {};
652
652
 
653
+ /******************************************************************************
654
+ * $mdColors Service
655
+ *****************************************************************************/
656
+
657
+ /** @interface */
658
+ md.$mdColors = function() {};
659
+
660
+ /**
661
+ * @param {!angular.JQLite} element
662
+ * @param {?Object} colorExpression
663
+ */
664
+ md.$mdColors.prototype.applyThemeColors = function(element, colorExpression) {};
665
+
666
+ /**
667
+ * @param {string} expression
668
+ * @return {string}
669
+ */
670
+ md.$mdColors.prototype.getThemeColor = function(expression) {};
653
671
 
654
672
  /******************************************************************************
655
673
  * $mdIcon Service
@@ -724,6 +742,24 @@ md.$mdMenu = function() {};
724
742
  */
725
743
  md.$mdMenu.prototype.hide = function(opt_reason, opt_options) {};
726
744
 
745
+ /******************************************************************************
746
+ * $mdMenu that is provided to the scope of the trigger element so that the
747
+ * menu can be closed/opened from the template.
748
+ * https://material.angularjs.org/latest/api/directive/mdMenu
749
+ *****************************************************************************/
750
+
751
+ /** @interface */
752
+ md.menu = function() {};
753
+
754
+ /** @param {!Event=} opt_event */
755
+ md.menu.prototype.open = function(opt_event) {};
756
+
757
+ /**
758
+ * @param {boolean=} opt_skipFocus
759
+ * @param {*=} opt_closeOptions
760
+ */
761
+ md.menu.prototype.close = function(opt_skipFocus, opt_closeOptions) {};
762
+
727
763
  /******************************************************************************
728
764
  * $mdSelect Service
729
765
  *****************************************************************************/
@@ -877,7 +913,7 @@ md.$panel = function() {};
877
913
  * @typedef {{
878
914
  * template: (string|undefined),
879
915
  * templateUrl: (string|undefined),
880
- * controller: (Function|string|undefined),
916
+ * controller: (angular.Injectable|string|undefined),
881
917
  * controllerAs: (string|undefined),
882
918
  * locals: (!Object|undefined),
883
919
  * resolve: (!Object|undefined),
@@ -66,7 +66,7 @@ ui.router.StateConfig.prototype.controller;
66
66
  ui.router.StateConfig.prototype.controllerAs;
67
67
 
68
68
 
69
- /** @type {!Function|undefined} */
69
+ /** @type {!angular.Injectable|undefined} */
70
70
  ui.router.StateConfig.prototype.controllerProvider;
71
71
 
72
72
 
@@ -130,10 +130,11 @@ ExpectChain.prototype.below = function(value, opt_message) {};
130
130
  ExpectChain.prototype.most = function(value, opt_message) {};
131
131
 
132
132
  /**
133
- * @param {number} value
133
+ * @param {number} start
134
+ * @param {number} finish
134
135
  * @param {string=} opt_message
135
136
  */
136
- ExpectChain.prototype.within = function(value, opt_message) {};
137
+ ExpectChain.prototype.within = function(start, finish, opt_message) {};
137
138
 
138
139
  /**
139
140
  * @param {function(new: Object)} constructor
@@ -269,6 +270,13 @@ assert.isNotOk = function(object, opt_message) {};
269
270
  */
270
271
  assert.equal = function(actual, expected, opt_message) {};
271
272
 
273
+ /**
274
+ * @param {*} actual
275
+ * @param {*} expected
276
+ * @param {string=} opt_message
277
+ */
278
+ assert.strictEqual = function(actual, expected, opt_message) {};
279
+
272
280
  /**
273
281
  * @param {*} actual
274
282
  * @param {*} expected
@@ -283,6 +291,13 @@ assert.notEqual = function(actual, expected, opt_message) {};
283
291
  */
284
292
  assert.deepEqual = function(actual, expected, opt_message) {};
285
293
 
294
+ /**
295
+ * @param {*} valueToCheck
296
+ * @param {*} valueToBeAbove
297
+ * @param {string=} opt_message
298
+ */
299
+ assert.isAbove = function(valueToCheck, valueToBeAbove, opt_message) {};
300
+
286
301
  /**
287
302
  * @param {*} valueToCheck
288
303
  * @param {*} valueToBeBelow
@@ -314,6 +329,18 @@ assert.isUndefined = function(value, opt_message) {};
314
329
  */
315
330
  assert.isDefined = function(value, opt_message) {};
316
331
 
332
+ /**
333
+ * @param {*} value
334
+ * @param {string=} message
335
+ */
336
+ assert.isNotNull = function(value, message) {}
337
+
338
+ /**
339
+ * @param {*} value
340
+ * @param {string=} opt_message
341
+ */
342
+ assert.isNull = function(value, opt_message) {};
343
+
317
344
  /**
318
345
  * @param {*} object
319
346
  * @param {function(new: Object)} constructor
@@ -321,6 +348,34 @@ assert.isDefined = function(value, opt_message) {};
321
348
  */
322
349
  assert.instanceOf = function(object, constructor, opt_message) {};
323
350
 
351
+ /**
352
+ * @param {!Array<*>|string} haystack
353
+ * @param {*} needle
354
+ * @param {string=} opt_message
355
+ */
356
+ assert.include = function(haystack, needle, opt_message) {};
357
+
358
+ /**
359
+ * @param {*} collection
360
+ * @param {number} length
361
+ * @param {string=} message
362
+ */
363
+ assert.lengthOf = function(collection, length, message) {};
364
+
365
+ /**
366
+ * @param {!Array<*>|string} haystack
367
+ * @param {*} needle
368
+ * @param {string=} opt_message
369
+ */
370
+ assert.notInclude = function(haystack, needle, opt_message) {};
371
+
372
+ /**
373
+ * @param {*} object
374
+ * @param {!RegExp} re
375
+ * @param {string=} opt_message
376
+ */
377
+ assert.match = function(object, re, opt_message) {};
378
+
324
379
  /**
325
380
  * @param {?Object|undefined} object
326
381
  * @param {string} property
@@ -336,3 +391,10 @@ assert.propertyVal = function(object, property, value, opt_message) {};
336
391
  * @param {string=} opt_message
337
392
  */
338
393
  assert.throws = function(fn, constructor, opt_regexp, opt_message) {};
394
+
395
+ /**
396
+ * @param {!Array<*>} set1
397
+ * @param {!Array<*>} set2
398
+ * @param {string=} opt_message
399
+ */
400
+ assert.sameMembers = function(set1, set2, opt_message) {};