@@ -7,27 +7,34 @@ open Fable.Core
7
7
type _identifier = string
8
8
9
9
10
+ [<Import( " AST" , " ast" ) >]
10
11
type AST =
11
12
abstract foo: int
12
13
14
+ [<Import( " mod" , " ast" ) >]
13
15
type ``mod`` =
14
16
inherit AST
15
17
18
+ [<Import( " expr" , " ast" ) >]
16
19
type expr =
17
20
inherit AST
18
21
22
+ [<Import( " Module" , " ast" ) >]
19
23
type Module =
20
24
inherit `` mod ``
21
25
abstract body: stmt array
22
26
27
+ [<Import( " Expression" , " ast" ) >]
23
28
type Expression =
24
29
inherit `` mod ``
25
30
abstract body: expr
26
31
32
+ [<Import( " Module" , " ast" ) >]
27
33
type stmt =
28
34
inherit AST
29
35
30
36
37
+ [<Import( " FunctionDef" , " ast" ) >]
31
38
type FunctionDef =
32
39
inherit stmt
33
40
@@ -37,6 +44,7 @@ type FunctionDef =
37
44
abstract decorator_list: expr array
38
45
abstract returns: expr option
39
46
47
+ [<Import( " ClassDef" , " ast" ) >]
40
48
type ClassDef =
41
49
inherit stmt
42
50
abstract name: _identifier
@@ -45,35 +53,42 @@ type ClassDef =
45
53
abstract body: stmt array
46
54
abstract decorator_list: expr array
47
55
56
+ [<Import( " Return" , " ast" ) >]
48
57
type Return =
49
58
inherit stmt
50
59
abstract value: expr option
51
60
61
+ [<Import( " Delete" , " ast" ) >]
52
62
type Delete =
53
63
inherit stmt
54
64
abstract targets: expr array
55
65
66
+ [<Import( " Assign" , " ast" ) >]
56
67
type Assign =
57
68
inherit stmt
58
69
abstract targets: expr array
59
70
abstract value: expr
60
71
72
+ [<Import( " Import" , " ast" ) >]
61
73
type Import =
62
74
inherit stmt
63
75
abstract names: alias array
64
76
77
+ [<Import( " ImportFrom" , " ast" ) >]
65
78
type ImportFrom =
66
79
inherit stmt
67
80
abstract ``module``: _identifier option
68
81
abstract names: alias array
69
82
abstract level: int
70
83
84
+ [<Import( " If" , " ast" ) >]
71
85
type If =
72
86
inherit stmt
73
87
abstract test: expr
74
88
abstract body: stmt array
75
89
abstract orelse: stmt array
76
90
91
+ [<Import( " arguments" , " ast" ) >]
77
92
type arguments =
78
93
inherit AST
79
94
@@ -85,16 +100,19 @@ type arguments =
85
100
abstract kwarg: arg option
86
101
abstract defaults: expr array
87
102
103
+ [<Import( " arg" , " ast" ) >]
88
104
type arg =
89
105
inherit AST
90
106
abstract arg: _identifier
91
107
abstract annotation: expr option
92
108
109
+ [<Import( " keyword" , " ast" ) >]
93
110
type keyword =
94
111
inherit AST
95
112
abstract arg: _identifier option
96
113
abstract value: expr
97
114
115
+ [<Import( " alias" , " ast" ) >]
98
116
type alias =
99
117
inherit AST
100
118
abstract name: _identifier
0 commit comments