Chromium Code Reviews
DescriptionBetter ability to have hand-written custom rules and various cleanups.
In particular, added CustomRule with a simplified set of methods for
subclasses to implement, renamed ClosureToMapRule to ClosureRule
and made it a subclass of CustomRule. Custom rules that return lists will
work either in the map or list format. Those that return maps will only
work in the map format. Introduced implementations of Map and List that
resolve references only on demand as part of the simplifications. Since
we don't have a way to serialize CustomRule, made selfDescribing be off
by default if those are used.
Generalized the ClassMirrorRule to general support for named objects both
on read and write with a specific subclass for DeclarationMirrors so that
they are set up automatically on write. Still the user's responsibility
on read.
Removed a bunch of declarations of things as Object, which didn't add any
information and just made for spurious type warnings.
Simplified the API so just read/write that take a single object. Removed
readOne/writeOne. If you want multiple objects, use a collection as the
single object.
Slightly generalized the dumpStateInto and related flat format methods. They
should still go away in favor of a more general mechanism, but at least there's
less code duplication now.
BUG=
Patch Set 1 #
Total comments: 18
Patch Set 2 : Changes from John's review #
Messages
Total messages: 5 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||