Memorizes a class instance attribute

def _onInstanceAttribute(self, name, line, pos, absPosition, level):
        """Memorizes a class instance attribute"""
        # Instance attributes may appear in member functions only so we already
        # have a function on the stack of objects. To get the class object one
        # more step is required so we -1 here.
        attributes = self.objectsStack[level - 1].instanceAttributes
        for item in attributes:
            if item.name == name:
                return
        attributes.append(InstanceAttribute(name, line, pos, absPosition))