setAllParentModule method
- Module? newParentModule
Performs a recursive call of setting parentModule on all of elements and their elements for any sub-LogicStructures.
This should only be called by Module.build. It is used to optimize search.
Implementation
@protected
void setAllParentModule(Module? newParentModule) {
parentModule = newParentModule;
for (final element in elements) {
if (element is LogicStructure) {
element.setAllParentModule(newParentModule);
}
element.parentModule = newParentModule;
}
}