Open morisil opened 7 years ago
I upgraded to closure compiler v20170626 and now the output seems to be a bit more informative
Originally at:
js/lib/incemental-dom/src/node_data.js:21: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:111:
Originally at:
js/lib/incemental-dom/src/node_data.js:60: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:130:
Originally at:
js/lib/incemental-dom/src/node_data.js:76: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:213:
Originally at:
js/lib/incemental-dom/src/nodes.js:30: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:345:
Originally at:
js/lib/incemental-dom/src/assertions.js:120: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:346:
Originally at:
js/lib/incemental-dom/src/assertions.js:120: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:592:
Originally at:
js/lib/incemental-dom/src/core.js:125: WARNING - assignment to property patch of module$exports$incrementaldom
found : function ((DocumentFragment|Element), function (?): ?, ?=): (Node|null)
required: function ((DocumentFragment|Element), function (T): ?, T=): Node
js/lib/incemental-dom/incremental-dom-closure.js:618:
Originally at:
js/lib/incemental-dom/src/core.js:152: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
js/lib/incemental-dom/incremental-dom-closure.js:628:
Originally at:
js/lib/incemental-dom/src/core.js:159: WARNING - assignment
found : {nextSibling: (DocumentFragment|Element)}
required: (Node|null)
js/lib/incemental-dom/incremental-dom-closure.js:632:
Originally at:
js/lib/incemental-dom/src/core.js:166: WARNING - actual parameter 1 of module$contents$incrementaldom_assertPatchElementNoExtras does not match formal parameter
found : {nextSibling: (DocumentFragment|Element)}
required: (Node|null)
js/lib/incemental-dom/incremental-dom-closure.js:632:
Originally at:
js/lib/incemental-dom/src/core.js:166: WARNING - actual parameter 2 of module$contents$incrementaldom_assertPatchElementNoExtras does not match formal parameter
found : {nextSibling: (DocumentFragment|Element)}
required: (Node|null)
js/lib/incemental-dom/incremental-dom-closure.js:639:
Originally at:
js/lib/incemental-dom/src/core.js:174: WARNING - inconsistent return type
found : (null|{nextSibling: (DocumentFragment|Element)})
required: (Node|null)
js/lib/incemental-dom/incremental-dom-closure.js:647:
Originally at:
js/lib/incemental-dom/src/core.js:151: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:665:
Originally at:
js/lib/incemental-dom/src/core.js:189: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:781:
Originally at:
js/lib/incemental-dom/src/core.js:314: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:793:
Originally at:
js/lib/incemental-dom/src/core.js:338: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
js/lib/incemental-dom/incremental-dom-closure.js:793:
Originally at:
js/lib/incemental-dom/src/core.js:338: WARNING - inconsistent return type
found : (Node|null)
required: Element
js/lib/incemental-dom/incremental-dom-closure.js:809:
Originally at:
js/lib/incemental-dom/src/core.js:354: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
js/lib/incemental-dom/incremental-dom-closure.js:809:
Originally at:
js/lib/incemental-dom/src/core.js:354: WARNING - inconsistent return type
found : (Node|null)
required: Element
js/lib/incemental-dom/incremental-dom-closure.js:822:
Originally at:
js/lib/incemental-dom/src/core.js:367: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
js/lib/incemental-dom/incremental-dom-closure.js:822:
Originally at:
js/lib/incemental-dom/src/core.js:367: WARNING - inconsistent return type
found : (Node|null)
required: Text
js/lib/incemental-dom/incremental-dom-closure.js:835:
Originally at:
js/lib/incemental-dom/src/core.js:380: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
js/lib/incemental-dom/incremental-dom-closure.js:835:
Originally at:
js/lib/incemental-dom/src/core.js:380: WARNING - inconsistent return type
found : (Node|null)
required: Element
js/lib/incemental-dom/incremental-dom-closure.js:963:
Originally at:
js/lib/incemental-dom/src/attributes.js:101: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
js/lib/incemental-dom/incremental-dom-closure.js:966:
Originally at:
js/lib/incemental-dom/src/attributes.js:104: WARNING - actual parameter 1 of module$contents$incrementaldom_has does not match formal parameter
found : *
required: Object<string,*>
js/lib/incemental-dom/incremental-dom-closure.js:987:
Originally at:
js/lib/incemental-dom/src/attributes.js:126: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
js/lib/incemental-dom/incremental-dom-closure.js:987:
Originally at:
js/lib/incemental-dom/src/attributes.js:126: WARNING - actual parameter 3 of module$exports$incrementaldom.applyAttr does not match formal parameter
found : *
required: (boolean|null|number|string|undefined)
js/lib/incemental-dom/incremental-dom-closure.js:1036:
Originally at:
js/lib/incemental-dom/src/virtual_elements.js:60: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:1059:
Originally at:
js/lib/incemental-dom/src/virtual_elements.js:87: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
js/lib/incemental-dom/incremental-dom-closure.js:1061:
Originally at:
js/lib/incemental-dom/src/virtual_elements.js:89: WARNING - actual parameter 2 of module$contents$incrementaldom_updateAttribute does not match formal parameter
found : *
required: string
js/lib/incemental-dom/incremental-dom-closure.js:1144:
Originally at:
js/lib/incemental-dom/src/virtual_elements.js:75: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:1197:
Originally at:
js/lib/incemental-dom/src/virtual_elements.js:214: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:1217:
Originally at:
js/lib/incemental-dom/src/virtual_elements.js:232: WARNING - Bad type annotation. Unknown type NameOrCtorDef
js/lib/incemental-dom/incremental-dom-closure.js:1252:
Originally at:
js/lib/incemental-dom/src/virtual_elements.js:285: WARNING - assignment to property text of NodeData
found : (boolean|number|string)
required: (null|string)
js/lib/incemental-dom/incremental-dom-closure.js:1252:
Originally at:
js/lib/incemental-dom/src/virtual_elements.js:286: WARNING - Misplaced type annotation. Type annotations are not allowed here. Are you missing parentheses?
I built the
incremental-dom
usingjs-closure
target and it works well. But when I compile my application with the Closure Compiler I get the following output:I cannot tell how severe problems these warnings indicate. But maybe it will be helpful to have them collected in this ticket.