@internal<EOL><INDENT>def _discover_enclosure(self):<DEDENT>
outputs = self._outputs<EOL>self._ifTrue_enclosed_for = self._discover_enclosure_for_statements(<EOL>self.ifTrue, outputs)<EOL>elif_encls = self._elIfs_enclosed_for = []<EOL>for _, stms in self.elIfs:<EOL><INDENT>e = self._discover_enclosure_for_statements(<EOL>stms, outputs)<EOL>elif_encls.append(e)<EOL><DEDENT>self._ifFalse_enclosed_for = self._discover_enclosure_for_statements(<EOL>self.ifFalse, outputs)<EOL>assert self._enclosed_for is None<EOL>encl = self._enclosed_for = set()<EOL>for s in self._ifTrue_enclosed_for:<EOL><INDENT>enclosed = True<EOL>for elif_e in elif_encls:<EOL><INDENT>if s not in elif_e:<EOL><INDENT>enclosed = False<EOL>break<EOL><DEDENT><DEDENT>if enclosed and s in self._ifFalse_enclosed_for:<EOL><INDENT>encl.add(s)<EOL><DEDENT><DEDENT>
Doc on parent class :meth:`HdlStatement._discover_enclosure`