Skip to content

Commit c3f3145

Browse files
committed
Move @externs before @license because Closure likes that.
1 parent bbbe6db commit c3f3145

File tree

3 files changed

+55
-55
lines changed

3 files changed

+55
-55
lines changed

externs/closure-types.js

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/**
2+
* @fileoverview Closure types for Polymer mixins
3+
* @externs
4+
*
25
* @license
36
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
47
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
58
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
69
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
710
* Code distributed by Google as part of the polymer project is also
811
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9-
*/
10-
/**
11-
* @fileoverview Closure types for Polymer mixins
1212
*
1313
* This file is generated, do not edit manually
1414
*/
@@ -204,9 +204,9 @@ Polymer_TemplateStamp.prototype._removeEventListenerFromNode = function(node, ev
204204
*/
205205
Polymer_TemplateStamp._parseTemplate = function(template, outerTemplateInfo){};
206206
/**
207-
* @param {*} template
208-
* @param {*} templateInfo
209-
* @param {*} nodeInfo
207+
* @param {*} template
208+
* @param {*} templateInfo
209+
* @param {*} nodeInfo
210210
*/
211211
Polymer_TemplateStamp._parseTemplateContent = function(template, templateInfo, nodeInfo){};
212212
/**
@@ -589,7 +589,7 @@ Polymer_PropertyEffects.prototype.get = function(path, root){};
589589
Polymer_PropertyEffects.prototype.set = function(path, value, root){};
590590
/**
591591
* @param {(string|!Array.<(string|number)>)} path Path to array.
592-
* @param {...*} items
592+
* @param {...*} items
593593
* @return {number}
594594
*/
595595
Polymer_PropertyEffects.prototype.push = function(path, items){};
@@ -602,7 +602,7 @@ Polymer_PropertyEffects.prototype.pop = function(path){};
602602
* @param {(string|!Array.<(string|number)>)} path Path to array.
603603
* @param {number} start Index from which to start removing/inserting.
604604
* @param {number} deleteCount Number of items to remove.
605-
* @param {...*} items
605+
* @param {...*} items
606606
* @return {Array}
607607
*/
608608
Polymer_PropertyEffects.prototype.splice = function(path, start, deleteCount, items){};
@@ -613,7 +613,7 @@ Polymer_PropertyEffects.prototype.splice = function(path, start, deleteCount, it
613613
Polymer_PropertyEffects.prototype.shift = function(path){};
614614
/**
615615
* @param {(string|!Array.<(string|number)>)} path Path to array.
616-
* @param {...*} items
616+
* @param {...*} items
617617
* @return {number}
618618
*/
619619
Polymer_PropertyEffects.prototype.unshift = function(path, items){};
@@ -680,9 +680,9 @@ Polymer_PropertyEffects.prototype._removeBoundDom = function(dom){};
680680
*/
681681
Polymer_PropertyEffects._parseTemplate = function(template, outerTemplateInfo){};
682682
/**
683-
* @param {*} template
684-
* @param {*} templateInfo
685-
* @param {*} nodeInfo
683+
* @param {*} template
684+
* @param {*} templateInfo
685+
* @param {*} nodeInfo
686686
*/
687687
Polymer_PropertyEffects._parseTemplateContent = function(template, templateInfo, nodeInfo){};
688688
/**
@@ -719,8 +719,8 @@ Polymer_PropertyEffects._parseTemplateNodeAttributes = function(node, templateIn
719719
* @param {Element} node Node to parse
720720
* @param {TemplateInfo} templateInfo Template metadata for current template
721721
* @param {NodeInfo} nodeInfo Node metadata for current template node
722-
* @param {*} name
723-
* @param {*} value
722+
* @param {*} name
723+
* @param {*} value
724724
* @return {boolean}
725725
*/
726726
Polymer_PropertyEffects._parseTemplateNodeAttribute = function(node, templateInfo, nodeInfo, name, value){};
@@ -1097,7 +1097,7 @@ Polymer_ElementMixin.prototype.get = function(path, root){};
10971097
Polymer_ElementMixin.prototype.set = function(path, value, root){};
10981098
/**
10991099
* @param {(string|!Array.<(string|number)>)} path Path to array.
1100-
* @param {...*} items
1100+
* @param {...*} items
11011101
* @return {number}
11021102
*/
11031103
Polymer_ElementMixin.prototype.push = function(path, items){};
@@ -1110,7 +1110,7 @@ Polymer_ElementMixin.prototype.pop = function(path){};
11101110
* @param {(string|!Array.<(string|number)>)} path Path to array.
11111111
* @param {number} start Index from which to start removing/inserting.
11121112
* @param {number} deleteCount Number of items to remove.
1113-
* @param {...*} items
1113+
* @param {...*} items
11141114
* @return {Array}
11151115
*/
11161116
Polymer_ElementMixin.prototype.splice = function(path, start, deleteCount, items){};
@@ -1121,7 +1121,7 @@ Polymer_ElementMixin.prototype.splice = function(path, start, deleteCount, items
11211121
Polymer_ElementMixin.prototype.shift = function(path){};
11221122
/**
11231123
* @param {(string|!Array.<(string|number)>)} path Path to array.
1124-
* @param {...*} items
1124+
* @param {...*} items
11251125
* @return {number}
11261126
*/
11271127
Polymer_ElementMixin.prototype.unshift = function(path, items){};
@@ -1250,8 +1250,8 @@ Polymer_ElementMixin._parseTemplateNodeAttributes = function(node, templateInfo,
12501250
* @param {Element} node Node to parse
12511251
* @param {TemplateInfo} templateInfo Template metadata for current template
12521252
* @param {NodeInfo} nodeInfo Node metadata for current template node
1253-
* @param {*} name
1254-
* @param {*} value
1253+
* @param {*} name
1254+
* @param {*} value
12551255
* @return {boolean}
12561256
*/
12571257
Polymer_ElementMixin._parseTemplateNodeAttribute = function(node, templateInfo, nodeInfo, name, value){};
@@ -1340,15 +1340,15 @@ Polymer_ElementMixin.finalize = function(){};
13401340
*/
13411341
function Polymer_GestureEventListeners(){}
13421342
/**
1343-
* @param {*} node
1344-
* @param {*} eventName
1345-
* @param {*} handler
1343+
* @param {*} node
1344+
* @param {*} eventName
1345+
* @param {*} handler
13461346
*/
13471347
Polymer_GestureEventListeners.prototype._addEventListenerToNode = function(node, eventName, handler){};
13481348
/**
1349-
* @param {*} node
1350-
* @param {*} eventName
1351-
* @param {*} handler
1349+
* @param {*} node
1350+
* @param {*} eventName
1351+
* @param {*} handler
13521352
*/
13531353
Polymer_GestureEventListeners.prototype._removeEventListenerFromNode = function(node, eventName, handler){};
13541354
/**
@@ -1382,15 +1382,15 @@ Polymer_LegacyElementMixin.prototype._stampTemplate = function(template){};
13821382
*/
13831383
Polymer_LegacyElementMixin.prototype._addMethodEventListenerToNode = function(node, eventName, methodName, context){};
13841384
/**
1385-
* @param {*} node
1386-
* @param {*} eventName
1387-
* @param {*} handler
1385+
* @param {*} node
1386+
* @param {*} eventName
1387+
* @param {*} handler
13881388
*/
13891389
Polymer_LegacyElementMixin.prototype._addEventListenerToNode = function(node, eventName, handler){};
13901390
/**
1391-
* @param {*} node
1392-
* @param {*} eventName
1393-
* @param {*} handler
1391+
* @param {*} node
1392+
* @param {*} eventName
1393+
* @param {*} handler
13941394
*/
13951395
Polymer_LegacyElementMixin.prototype._removeEventListenerFromNode = function(node, eventName, handler){};
13961396
/**
@@ -1639,7 +1639,7 @@ Polymer_LegacyElementMixin.prototype.get = function(path, root){};
16391639
Polymer_LegacyElementMixin.prototype.set = function(path, value, root){};
16401640
/**
16411641
* @param {(string|!Array.<(string|number)>)} path Path to array.
1642-
* @param {...*} items
1642+
* @param {...*} items
16431643
* @return {number}
16441644
*/
16451645
Polymer_LegacyElementMixin.prototype.push = function(path, items){};
@@ -1652,7 +1652,7 @@ Polymer_LegacyElementMixin.prototype.pop = function(path){};
16521652
* @param {(string|!Array.<(string|number)>)} path Path to array.
16531653
* @param {number} start Index from which to start removing/inserting.
16541654
* @param {number} deleteCount Number of items to remove.
1655-
* @param {...*} items
1655+
* @param {...*} items
16561656
* @return {Array}
16571657
*/
16581658
Polymer_LegacyElementMixin.prototype.splice = function(path, start, deleteCount, items){};
@@ -1663,7 +1663,7 @@ Polymer_LegacyElementMixin.prototype.splice = function(path, start, deleteCount,
16631663
Polymer_LegacyElementMixin.prototype.shift = function(path){};
16641664
/**
16651665
* @param {(string|!Array.<(string|number)>)} path Path to array.
1666-
* @param {...*} items
1666+
* @param {...*} items
16671667
* @return {number}
16681668
*/
16691669
Polymer_LegacyElementMixin.prototype.unshift = function(path, items){};
@@ -1914,8 +1914,8 @@ Polymer_LegacyElementMixin.prototype.isLightDescendant = function(node){};
19141914
*/
19151915
Polymer_LegacyElementMixin.prototype.isLocalDescendant = function(node){};
19161916
/**
1917-
* @param {*} container
1918-
* @param {*} shouldObserve
1917+
* @param {*} container
1918+
* @param {*} shouldObserve
19191919
*/
19201920
Polymer_LegacyElementMixin.prototype.scopeSubtree = function(container, shouldObserve){};
19211921
/**
@@ -2023,20 +2023,20 @@ Polymer_LegacyElementMixin.prototype.arrayDelete = function(arrayOrPath, item){}
20232023
*/
20242024
Polymer_LegacyElementMixin.prototype._logger = function(level, args){};
20252025
/**
2026-
* @param {...*} args
2026+
* @param {...*} args
20272027
*/
20282028
Polymer_LegacyElementMixin.prototype._log = function(args){};
20292029
/**
2030-
* @param {...*} args
2030+
* @param {...*} args
20312031
*/
20322032
Polymer_LegacyElementMixin.prototype._warn = function(args){};
20332033
/**
2034-
* @param {...*} args
2034+
* @param {...*} args
20352035
*/
20362036
Polymer_LegacyElementMixin.prototype._error = function(args){};
20372037
/**
20382038
* @param {string} methodName Method name to associate with message
2039-
* @param {...*} args
2039+
* @param {...*} args
20402040
* @return {Array}
20412041
*/
20422042
Polymer_LegacyElementMixin.prototype._logf = function(methodName, args){};
@@ -2085,8 +2085,8 @@ Polymer_LegacyElementMixin._parseTemplateNodeAttributes = function(node, templat
20852085
* @param {Element} node Node to parse
20862086
* @param {TemplateInfo} templateInfo Template metadata for current template
20872087
* @param {NodeInfo} nodeInfo Node metadata for current template node
2088-
* @param {*} name
2089-
* @param {*} value
2088+
* @param {*} name
2089+
* @param {*} value
20902090
* @return {boolean}
20912091
*/
20922092
Polymer_LegacyElementMixin._parseTemplateNodeAttribute = function(node, templateInfo, nodeInfo, name, value){};
@@ -2488,7 +2488,7 @@ Polymer_ArraySelectorMixin.prototype.get = function(path, root){};
24882488
Polymer_ArraySelectorMixin.prototype.set = function(path, value, root){};
24892489
/**
24902490
* @param {(string|!Array.<(string|number)>)} path Path to array.
2491-
* @param {...*} items
2491+
* @param {...*} items
24922492
* @return {number}
24932493
*/
24942494
Polymer_ArraySelectorMixin.prototype.push = function(path, items){};
@@ -2501,7 +2501,7 @@ Polymer_ArraySelectorMixin.prototype.pop = function(path){};
25012501
* @param {(string|!Array.<(string|number)>)} path Path to array.
25022502
* @param {number} start Index from which to start removing/inserting.
25032503
* @param {number} deleteCount Number of items to remove.
2504-
* @param {...*} items
2504+
* @param {...*} items
25052505
* @return {Array}
25062506
*/
25072507
Polymer_ArraySelectorMixin.prototype.splice = function(path, start, deleteCount, items){};
@@ -2512,7 +2512,7 @@ Polymer_ArraySelectorMixin.prototype.splice = function(path, start, deleteCount,
25122512
Polymer_ArraySelectorMixin.prototype.shift = function(path){};
25132513
/**
25142514
* @param {(string|!Array.<(string|number)>)} path Path to array.
2515-
* @param {...*} items
2515+
* @param {...*} items
25162516
* @return {number}
25172517
*/
25182518
Polymer_ArraySelectorMixin.prototype.unshift = function(path, items){};
@@ -2671,8 +2671,8 @@ Polymer_ArraySelectorMixin._parseTemplateNodeAttributes = function(node, templat
26712671
* @param {Element} node Node to parse
26722672
* @param {TemplateInfo} templateInfo Template metadata for current template
26732673
* @param {NodeInfo} nodeInfo Node metadata for current template node
2674-
* @param {*} name
2675-
* @param {*} value
2674+
* @param {*} name
2675+
* @param {*} value
26762676
* @return {boolean}
26772677
*/
26782678
Polymer_ArraySelectorMixin._parseTemplateNodeAttribute = function(node, templateInfo, nodeInfo, name, value){};
@@ -2755,4 +2755,4 @@ Polymer_ArraySelectorMixin._parseBindings = function(text, templateInfo){};
27552755
Polymer_ArraySelectorMixin._evaluateBinding = function(inst, part, path, props, oldProps, hasPaths){};
27562756
/**
27572757
*/
2758-
Polymer_ArraySelectorMixin.finalize = function(){};
2758+
Polymer_ArraySelectorMixin.finalize = function(){};

externs/polymer-externs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/**
2+
* @fileoverview Externs for Polymer
3+
* @externs
4+
*
25
* @license
36
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
47
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
58
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
69
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
710
* Code distributed by Google as part of the polymer project is also
811
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9-
*
10-
* @fileoverview Externs for Polymer
11-
* @externs
1212
*/
1313

1414
/* eslint-disable */
@@ -101,4 +101,4 @@ Polymer.telemetry;
101101
* @extends {HTMLElement}
102102
* @implements {Polymer_LegacyElementMixin}
103103
*/
104-
var PolymerElement = Polymer.LegacyElementMixin();
104+
var PolymerElement = Polymer.LegacyElementMixin();

externs/webcomponents-externs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/**
2+
* @fileoverview Externs for webcomponents polyfills
3+
* @externs
4+
*
25
* @license
36
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
47
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
58
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
69
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
710
* Code distributed by Google as part of the polymer project is also
811
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9-
*
10-
* @fileoverview Externs for webcomponents polyfills
11-
* @externs
1212
*/
1313
/* eslint-disable */
1414

0 commit comments

Comments
 (0)