-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We add to Scope the following methods: - A method to ask if this is the Root Scope. - A method to get the depth (distance to the root scope) - A method to search either a descendent or ancestor scope. Pull: rewrite `goCloseScope` method to reduce code nesting: - Split from `closeAndGo` the logic to get the Result - Use cases with guards for the choices. - Inline top-level parts of `closeAndGo` method.
- Loading branch information
Showing
2 changed files
with
51 additions
and
31 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