diff -r 95538c8d07c1 -r 6018d7ac3aec Utilities/ClassBrowsers/ClbrBaseClasses.py --- a/Utilities/ClassBrowsers/ClbrBaseClasses.py Wed Sep 07 18:18:00 2011 +0200 +++ b/Utilities/ClassBrowsers/ClbrBaseClasses.py Wed Sep 07 20:04:09 2011 +0200 @@ -75,6 +75,8 @@ """ if attr.name not in self.globals: self.globals[attr.name] = attr + else: + self.globals[attr.name].addAssignment(attr.lineno) def _getglobal(self, name): """ @@ -96,6 +98,8 @@ """ if attr.name not in self.attributes: self.attributes[attr.name] = attr + else: + self.attributes[attr.name].addAssignment(attr.lineno) def _getattribute(self, name): """ @@ -180,6 +184,17 @@ @param lineno linenumber of the class definition """ _ClbrBase.__init__(self, module, name, file, lineno) + + self.linenos = [lineno] + + def addAssignment(self, lineno): + """ + Public method to add another assignment line number. + + @param lineno linenumber of the additional attribute assignment (integer) + """ + if lineno not in self.linenos: + self.linenos.append(lineno) class Class(ClbrBase):