Skip to content

Commit

Permalink
Remove @override from static methods on mixins.
Browse files Browse the repository at this point in the history
Closure compiler is improving its handling of class inheritance, and it does not understand our mixins well enough to notice that these methods override their superclasses. These annotations cause compiler errors in an upcoming version of the compiler.
  • Loading branch information
rictic committed Jan 15, 2019
1 parent d619dc1 commit f15b137
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/mixins/dir-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export const DirMixin = dedupingMixin((base) => {
class Dir extends elementBase {

/**
* @override
* @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do
*/
static _processStyleText(cssText, baseURI) {
Expand Down
1 change: 0 additions & 1 deletion lib/mixins/disable-upgrade-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export const DisableUpgradeMixin = dedupingMixin((base) => {
class DisableUpgradeClass extends superClass {

/**
* @override
* @suppress {missingProperties} go/missingfnprops
*/
static get observedAttributes() {
Expand Down
3 changes: 0 additions & 3 deletions lib/mixins/element-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ export const ElementMixin = dedupingMixin(base => {
* find the template.
* @return {void}
* @protected
* @override
* @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do
*/
static _finalizeClass() {
Expand Down Expand Up @@ -357,7 +356,6 @@ export const ElementMixin = dedupingMixin(base => {
* and property effects for all of the properties.
* @return {void}
* @protected
* @override
*/
static createProperties(props) {
for (let p in props) {
Expand Down Expand Up @@ -724,7 +722,6 @@ export const ElementMixin = dedupingMixin(base => {
* code. This map determines which method templates should have accessors
* created for them.
*
* @override
* @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do
*/
static _parseTemplateContent(template, templateInfo, nodeInfo) {
Expand Down
3 changes: 0 additions & 3 deletions lib/mixins/property-effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -2484,7 +2484,6 @@ export const PropertyEffects = dedupingMixin(superClass => {
* with one or more metadata objects capturing the source(s) of the
* binding.
*
* @override
* @param {Node} node Node to parse
* @param {TemplateInfo} templateInfo Template metadata for current template
* @param {NodeInfo} nodeInfo Node metadata for current template node
Expand Down Expand Up @@ -2517,7 +2516,6 @@ export const PropertyEffects = dedupingMixin(superClass => {
* with one or more metadata objects capturing the source(s) of the
* binding.
*
* @override
* @param {Element} node Node to parse
* @param {TemplateInfo} templateInfo Template metadata for current template
* @param {NodeInfo} nodeInfo Node metadata for current template node
Expand Down Expand Up @@ -2581,7 +2579,6 @@ export const PropertyEffects = dedupingMixin(superClass => {
* binding the properties that a nested template depends on to the template
* as `_host_<property>`.
*
* @override
* @param {Node} node Node to parse
* @param {TemplateInfo} templateInfo Template metadata for current template
* @param {NodeInfo} nodeInfo Node metadata for current template node
Expand Down

0 comments on commit f15b137

Please sign in to comment.