19 the docstring on |
19 the docstring on |
20 @type FunctionInfo |
20 @type FunctionInfo |
21 @return list of docstring lines |
21 @return list of docstring lines |
22 @rtype str |
22 @rtype str |
23 """ |
23 """ |
|
24 # __IGNORE_WARNING_D202__ |
24 lines = [] |
25 lines = [] |
25 |
26 |
26 # create a basic/partial function description |
27 # create a basic/partial function description |
27 descrComplete = False |
|
28 if functionInfo.functionType == "classmethod": |
28 if functionInfo.functionType == "classmethod": |
29 descr = "Class method " |
29 descr = "Class method " |
30 elif functionInfo.functionType == "staticmethod": |
30 elif functionInfo.functionType == "staticmethod": |
31 descr = "Static method " |
31 descr = "Static method " |
32 elif functionInfo.functionType == "constructor": |
32 elif functionInfo.functionType == "constructor": |
33 descr = "Constructor" |
33 descr = "Constructor" |
34 descrComplete = True |
|
35 else: |
34 else: |
36 if functionInfo.visibility == "public": |
35 if functionInfo.visibility == "public": |
37 descr = "Public " |
36 descr = "Public " |
38 elif functionInfo.visibility == "protected": |
37 elif functionInfo.visibility == "protected": |
39 descr = "Protected " |
38 descr = "Protected " |