body |
Expr
([1, 0])
|
1: """Example module to test pyRegurgitator"""
|
value |
s |
'Example module to test pyRegurgitator' |
|
|
Assign
([3, 0])
|
3: __version__ = (0, 1, 0)
|
|
ClassDef
([6, 0])
|
6: class Foo:
|
name |
'Foo' |
bases |
|
keywords |
|
starargs |
None |
kwargs |
None |
body |
FunctionDef
([7, 4])
|
7: def hi(self):
|
name |
'hi' |
args |
args |
arg |
'self' |
annotation |
None |
|
|
vararg |
None |
kwonlyargs |
|
kw_defaults |
|
kwarg |
None |
defaults |
|
|
body |
Expr
([8, 8])
|
8: print('Hi, this is Foo')
|
value |
func |
|
args |
|
keywords |
|
starargs |
None |
kwargs |
None |
|
|
|
decorator_list |
|
returns |
None |
|
FunctionDef
([10, 4])
|
10: @staticmethod
|
name |
'add_4' |
args |
args |
arg |
'num' |
annotation |
None |
|
|
vararg |
None |
kwonlyargs |
|
kw_defaults |
|
kwarg |
None |
defaults |
|
|
body |
Return
([12, 8])
|
12: return 4 + num
|
|
|
decorator_list |
|
returns |
None |
|
|
decorator_list |
|
|
ClassDef
([15, 0])
|
15: class Bar(Foo):
|
name |
'Bar' |
bases |
|
keywords |
|
starargs |
None |
kwargs |
None |
body |
FunctionDef
([16, 4])
|
16: def bar(self):
|
name |
'bar' |
args |
args |
arg |
'self' |
annotation |
None |
|
|
vararg |
None |
kwonlyargs |
|
kw_defaults |
|
kwarg |
None |
defaults |
|
|
body |
Expr
([17, 8])
|
17: print('foobar')
|
value |
func |
|
args |
|
keywords |
|
starargs |
None |
kwargs |
None |
|
|
|
decorator_list |
|
returns |
None |
|
|
decorator_list |
|
|
|