Utilities/ClassBrowsers/ClbrBaseClasses.py

changeset 3966
969a3d41c402
parent 3178
f25fc1364c88
child 4021
195a471c327b
equal deleted inserted replaced
3962:b75057280077 3966:969a3d41c402
253 General = 0 253 General = 0
254 Static = 1 254 Static = 1
255 Class = 2 255 Class = 2
256 256
257 def __init__(self, module, name, file, lineno, signature='', separator=',', 257 def __init__(self, module, name, file, lineno, signature='', separator=',',
258 modifierType=General): 258 modifierType=General, annotation=""):
259 """ 259 """
260 Constructor 260 Constructor
261 261
262 @param module name of the module containing this function 262 @param module name of the module containing this function
263 @param name name of this function 263 @param name name of this function
264 @param file filename containing this class 264 @param file filename containing this class
265 @param lineno linenumber of the class definition 265 @param lineno linenumber of the class definition
266 @param signature parameterlist of the method 266 @param signature parameterlist of the method
267 @param separator string separating the parameters 267 @param separator string separating the parameters
268 @param modifierType type of the function 268 @param modifierType type of the function
269 @param annotation return annotation
269 """ 270 """
270 ClbrBase.__init__(self, module, name, file, lineno) 271 ClbrBase.__init__(self, module, name, file, lineno)
271 self.parameters = [e.strip() for e in signature.split(separator)] 272 self.parameters = [e.strip() for e in signature.split(separator)]
272 self.modifier = modifierType 273 self.modifier = modifierType
274 self.annotation = annotation
273 275
274 276
275 class Coding(ClbrBase): 277 class Coding(ClbrBase):
276 """ 278 """
277 Class to represent a source coding. 279 Class to represent a source coding.

eric ide

mercurial