hwt/serializer/generic/nameScope.py
def setLevel(self, lvl):
        """
        Trim or extend scope
        lvl = 1 -> only one scope (global)
        """
        while len(self) != lvl:
            if len(self) > lvl:
                self.pop()
            else:
                self.append(NameScopeItem(len(self)))
def setLevel(self, lvl):
        """
        Trim or extend scope
        lvl = 1 -> only one scope (global)
        """
        while len(self) != lvl:
            if len(self) > lvl:
                self.pop()
            else:
                self.append(NameScopeItem(len(self)))
def setLevel ( self , lvl ) : while len ( self ) != lvl : if len ( self ) > lvl : self . pop ( ) else : self . append ( NameScopeItem ( len ( self ) ) )
Trim or extend scope
        lvl = 1 -> only one scope (global)
Trim or extend scope lvl = 1 - > only one scope ( global )