Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Add TODOs to fix this-before-super problems.
Browse files Browse the repository at this point in the history
We're trying to migrate all ES5 subclasses of Closure Library to ES6. In ES6 this cannot be referenced before super is called. These files cannot be automatically upgraded to ES6 as a result.

If you have the time please fix these for us and remove the TODO. We'd greatly appreciate it.

More information: go/lsc-closure-es5-subclasses-to-es6

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=246907173
  • Loading branch information
johnplaisted committed May 6, 2019
1 parent e1a8bc3 commit 97390e9
Show file tree
Hide file tree
Showing 18 changed files with 162 additions and 0 deletions.
9 changes: 9 additions & 0 deletions closure/goog/db/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
*/



// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.db.DomErrorLike');
goog.provide('goog.db.Error');
goog.provide('goog.db.Error.ErrorCode');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/debug/fancywindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
*/



// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.debug.FancyWindow');

goog.require('goog.array');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/demos/editor/helloworlddialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
*
*/


// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.demos.editor.HelloWorldDialog');
goog.provide('goog.demos.editor.HelloWorldDialog.OkEvent');

Expand Down
9 changes: 9 additions & 0 deletions closure/goog/dom/controlrange.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
*/



// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.dom.ControlRange');
goog.provide('goog.dom.ControlRangeIterator');

Expand Down
9 changes: 9 additions & 0 deletions closure/goog/dom/multirange.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
*/



// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.dom.MultiRange');
goog.provide('goog.dom.MultiRangeIterator');

Expand Down
9 changes: 9 additions & 0 deletions closure/goog/dom/pattern/childmatches.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
* @author robbyw@google.com (Robby Walker)
*/


// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.dom.pattern.ChildMatches');

goog.require('goog.dom.pattern.AllChildren');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/dom/pattern/fulltag.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
* @author robbyw@google.com (Robby Walker)
*/


// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.dom.pattern.FullTag');

goog.require('goog.dom.pattern.MatchType');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/dom/textrangeiterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
* @author robbyw@google.com (Robby Walker)
*/


// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.dom.TextRangeIterator');

goog.require('goog.array');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/fs/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
*
*/


// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.fs.DOMErrorLike');
goog.provide('goog.fs.Error');
goog.provide('goog.fs.Error.ErrorCode');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/graphics/ext/graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
*/



// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.graphics.ext.Graphics');

goog.require('goog.events');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/graphics/ext/shape.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
*/



// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.graphics.ext.Shape');

goog.require('goog.graphics.ext.StrokeAndFillElement');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/graphics/vmlelement.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
* @author arv@google.com (Erik Arvidsson)
*/


// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.graphics.VmlEllipseElement');
goog.provide('goog.graphics.VmlGroupElement');
goog.provide('goog.graphics.VmlImageElement');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/labs/format/csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
*
* @author nnaze@google.com (Nathan Naze) Ported to Closure
*/

// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.labs.format.csv');
goog.provide('goog.labs.format.csv.ParseError');
goog.provide('goog.labs.format.csv.Token');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/net/ipaddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
*
*/


// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.net.IpAddress');
goog.provide('goog.net.Ipv4Address');
goog.provide('goog.net.Ipv6Address');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/storage/mechanism/ieuserdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
*
*/


// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.storage.mechanism.IEUserData');

goog.require('goog.asserts');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/testing/fs/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
*/

goog.setTestOnly('goog.testing.fs.DirectoryEntry');

// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.testing.fs.DirectoryEntry');
goog.provide('goog.testing.fs.Entry');
goog.provide('goog.testing.fs.FileEntry');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/testing/net/xhriopool.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
*/

goog.setTestOnly('goog.testing.net.XhrIoPool');

// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.testing.net.XhrIoPool');

goog.require('goog.net.XhrIoPool');
Expand Down
9 changes: 9 additions & 0 deletions closure/goog/ui/sliderbase_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.


// TODO(b/130421259): We're trying to migrate all ES5 subclasses of Closure
// Library to ES6. In ES6 this cannot be referenced before super is called. This
// file has at least one this before a super call (in ES5) and cannot be
// automatically upgraded to ES6 as a result. Please fix this if you have a
// chance. Note: This can sometimes be caused by not calling the super
// constructor at all. You can run the conversion tool yourself to see what it
// does on this file: blaze run //javascript/refactoring/es6_classes:convert.

goog.provide('goog.ui.SliderBaseTest');
goog.setTestOnly('goog.ui.SliderBaseTest');

Expand Down

0 comments on commit 97390e9

Please sign in to comment.