-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate DeferredProcessor to ES6 classes
Stop using the old-style Closure Compiler classes and switch to modern ES6 classes. Code was *not* reformatted, in order to make the diff readable; later there'll be a separate commit that'll apply clang-tidy. A brief overview of the changes: * Instead of declaring the class by marking a function with "@constructor", the "class" ES6 keyword is used. * Instead of using goog.inherits() for declaring the inheritance, the "extends" ES6 keyword is used. * Static properties are first defined as file-global constants and only then copied into the class; this allows using them in the class code, since the old-style "this.someConstant" access doesn't work anymore. (A side note: ES6 class static properties aren't supported by Closure Compiler yet.) * Calls to the parent class' methods are done via super() instead of the Closure Compiler's base() method. This is expected to be a non-functional change. It contributes to the refactoring effort tracked by #264.
- Loading branch information
1 parent
36491f4
commit 0404bf2
Showing
1 changed file
with
46 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters