Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
assert that the root() is always a Module
The nodes are often created in an ad-hoc way, and their parent is not always set. We can't control for that invariant fully in the constructor, since the parent is sometimes set outside of the constructor. The previous commits did their best to clean up such situations, but let's add an assert just in case.
- Loading branch information