-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolver is a class that was designed for one purpose: find a reference to subobject in the list of arguments by integer path to that subobject. It also can transform objects which have decoding rules to that rules and also dereference pointers to members (which are usually used in decoding rules). The previous resolver had at a problem: it did not transform an object to its decoding rule if the object was produced by dereferencing pointer to member. Also there were circumstances when result of resolving was unwrapped - that means that specificators like as_map were lost. The patch fixes the problems and also seems to simplify resolver. Now resolver always returns completely transformed result. More comments are added. Add a test that would fail without the fix. Simplify the test a bit.
- Loading branch information
Showing
2 changed files
with
116 additions
and
93 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
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