-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework look-ahead machinery as lazy-evaluated (#1212)
- make `LookAheadValue::List` to contain new iterable `LookAheadList` type - make `LookAheadValue::Object` to contain new iterable `LookAheadObject` type - remove `LookAheadMethods` trait and redundant `ConcreteLookAheadSelection` struct making all APIs accessible as inherent methods on `LookAheadSelection` and `LookAheadChildren` decoupled types - move `LookAheadMethods::child_names()` to `LookAheadChildren::names()` - move `LookAheadMethods::has_children()` to `LookAheadChildren::is_empty()` - move `LookAheadMethods::select_child()` to `LookAheadChildren::select()` - move `LookAheadSelection::for_explicit_type()` to `LookAheadSelection::children_for_explicit_type()` - make `LookAheadSelection::arguments()` returning iterator over `LookAheadArgument` - make `LookAheadSelection::children()` returning `LookAheadChildren` Co-authored-by: Kai Ren <tyranron@gmail.com>
- Loading branch information
1 parent
e64287c
commit c54137f
Showing
12 changed files
with
1,239 additions
and
963 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
Oops, something went wrong.