@@ -7,42 +7,22 @@ import PythonParameter from './PythonParameter';
7
7
import PythonResult from './PythonResult' ;
8
8
9
9
export default class PythonFunction extends PythonDeclaration {
10
- readonly name : string ;
11
- readonly uniqueName : string ;
12
- readonly qualifiedName : string ;
13
- readonly uniqueQualifiedName : string ;
14
- readonly decorators : string [ ] ;
15
- readonly parameters : PythonParameter [ ] ;
16
- readonly results : PythonResult [ ] ;
17
- readonly isPublic : boolean ;
18
- readonly description : string ;
19
- readonly fullDocstring : string ;
20
10
containingModuleOrClass : Optional < PythonModule | PythonClass > ;
21
11
22
12
constructor (
23
- name : string ,
24
- uniqueName : string ,
25
- qualifiedName : string ,
26
- uniqueQualifiedName : string ,
27
- decorators : string [ ] = [ ] ,
28
- parameters : PythonParameter [ ] = [ ] ,
29
- results : PythonResult [ ] = [ ] ,
30
- isPublic : boolean = false ,
31
- description = '' ,
32
- fullDocstring = '' ,
13
+ readonly name : string ,
14
+ readonly uniqueName : string ,
15
+ readonly qualifiedName : string ,
16
+ readonly uniqueQualifiedName : string ,
17
+ readonly decorators : string [ ] = [ ] ,
18
+ readonly parameters : PythonParameter [ ] = [ ] ,
19
+ readonly results : PythonResult [ ] = [ ] ,
20
+ readonly isPublic : boolean = false ,
21
+ readonly description = '' ,
22
+ readonly fullDocstring = '' ,
33
23
) {
34
24
super ( ) ;
35
25
36
- this . name = name ;
37
- this . uniqueName = uniqueName ;
38
- this . qualifiedName = qualifiedName ;
39
- this . uniqueQualifiedName = uniqueQualifiedName ;
40
- this . decorators = decorators ;
41
- this . parameters = parameters ;
42
- this . results = results ;
43
- this . isPublic = isPublic ;
44
- this . description = description ;
45
- this . fullDocstring = fullDocstring ;
46
26
this . containingModuleOrClass = null ;
47
27
48
28
this . parameters . forEach ( ( it ) => {
0 commit comments