-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move all reverse dependency registering into
ReverseDependencies
This will make it easier to understand how reverse dependencies work, because now there is one uniform place, in the very end, where we register all reverse dependencies of a class. I have thought about encapsulating `ReverseDependencies` into `JavaClassDependencies` to have an API similar to earlier, but since `JavaMember` meanwhile also uses `ReverseDependencies` directly, I refrained from it. I think it is still acceptable to have these two objects and another level of indirection (`JavaClassDependencies` delegating to `ReverseDependencies`) will certainly not make dependency resolution any faster either. In any case the `ImportContext` is now simpler and I measured performance and could not detect any significant degradation (even though we now have additional loops to register the reverse dependencies that we did not have before). Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
- Loading branch information
1 parent
61037e2
commit 90daf52
Showing
13 changed files
with
315 additions
and
418 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
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.