Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 7bc1963

Browse files
author
Juanjo Alvarez
committed
Generated the AST and UAST for the new tests
Signed-off-by: Juanjo Alvarez <[email protected]>
1 parent 5291e7a commit 7bc1963

40 files changed

+7492
-0
lines changed
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
{
2+
"status": "ok",
3+
"language": "python",
4+
"errors": [],
5+
"ast": {
6+
"PY3AST": {
7+
"ast_type": "Module",
8+
"body": [
9+
{
10+
"args": {
11+
"args": [
12+
{
13+
"annotation": {
14+
"ast_type": "Name",
15+
"col_offset": 14,
16+
"ctx": "Load",
17+
"end_col_offset": 16,
18+
"end_lineno": 1,
19+
"id": "int",
20+
"lineno": 1
21+
},
22+
"arg": "a",
23+
"ast_type": "arg",
24+
"col_offset": 11,
25+
"end_col_offset": 11,
26+
"end_lineno": 1,
27+
"lineno": 1
28+
},
29+
{
30+
"annotation": {
31+
"ast_type": "Name",
32+
"col_offset": 22,
33+
"ctx": "Load",
34+
"end_col_offset": 24,
35+
"end_lineno": 1,
36+
"id": "str",
37+
"lineno": 1
38+
},
39+
"arg": "b",
40+
"ast_type": "arg",
41+
"col_offset": 19,
42+
"end_col_offset": 19,
43+
"end_lineno": 1,
44+
"lineno": 1
45+
},
46+
{
47+
"annotation": {
48+
"ast_type": "Name",
49+
"col_offset": 30,
50+
"ctx": "Load",
51+
"end_col_offset": 33,
52+
"end_lineno": 1,
53+
"id": "List",
54+
"lineno": 1
55+
},
56+
"arg": "c",
57+
"ast_type": "arg",
58+
"col_offset": 27,
59+
"end_col_offset": 27,
60+
"end_lineno": 1,
61+
"lineno": 1
62+
},
63+
{
64+
"annotation": {
65+
"ast_type": "Name",
66+
"col_offset": 39,
67+
"ctx": "Load",
68+
"end_col_offset": 44,
69+
"end_lineno": 1,
70+
"id": "MyType",
71+
"lineno": 1
72+
},
73+
"arg": "d",
74+
"ast_type": "arg",
75+
"col_offset": 36,
76+
"end_col_offset": 36,
77+
"end_lineno": 1,
78+
"lineno": 1
79+
}
80+
],
81+
"ast_type": "arguments",
82+
"defaults": [],
83+
"kw_defaults": [],
84+
"kwarg": null,
85+
"kwonlyargs": [],
86+
"vararg": null
87+
},
88+
"ast_type": "FunctionDef",
89+
"body": [
90+
{
91+
"ast_type": "Pass",
92+
"col_offset": 48,
93+
"end_col_offset": 51,
94+
"end_lineno": 1,
95+
"lineno": 1
96+
}
97+
],
98+
"col_offset": 5,
99+
"decorator_list": [],
100+
"end_col_offset": 9,
101+
"end_lineno": 1,
102+
"lineno": 1,
103+
"name": "func1",
104+
"returns": null
105+
},
106+
{
107+
"args": {
108+
"args": [],
109+
"ast_type": "arguments",
110+
"defaults": [],
111+
"kw_defaults": [],
112+
"kwarg": null,
113+
"kwonlyargs": [],
114+
"vararg": null
115+
},
116+
"ast_type": "FunctionDef",
117+
"body": [
118+
{
119+
"ast_type": "Pass",
120+
"col_offset": 21,
121+
"end_col_offset": 24,
122+
"end_lineno": 2,
123+
"lineno": 2
124+
}
125+
],
126+
"col_offset": 5,
127+
"decorator_list": [],
128+
"end_col_offset": 9,
129+
"end_lineno": 2,
130+
"lineno": 2,
131+
"name": "func2",
132+
"returns": {
133+
"ast_type": "Name",
134+
"col_offset": 16,
135+
"ctx": "Load",
136+
"end_col_offset": 18,
137+
"end_lineno": 2,
138+
"id": "str",
139+
"lineno": 2
140+
}
141+
},
142+
{
143+
"args": {
144+
"args": [
145+
{
146+
"annotation": {
147+
"ast_type": "Name",
148+
"col_offset": 14,
149+
"ctx": "Load",
150+
"end_col_offset": 16,
151+
"end_lineno": 3,
152+
"id": "str",
153+
"lineno": 3
154+
},
155+
"arg": "e",
156+
"ast_type": "arg",
157+
"col_offset": 11,
158+
"end_col_offset": 11,
159+
"end_lineno": 3,
160+
"lineno": 3
161+
}
162+
],
163+
"ast_type": "arguments",
164+
"defaults": [],
165+
"kw_defaults": [],
166+
"kwarg": null,
167+
"kwonlyargs": [],
168+
"vararg": null
169+
},
170+
"ast_type": "FunctionDef",
171+
"body": [
172+
{
173+
"ast_type": "Pass",
174+
"col_offset": 27,
175+
"end_col_offset": 30,
176+
"end_lineno": 3,
177+
"lineno": 3
178+
}
179+
],
180+
"col_offset": 5,
181+
"decorator_list": [],
182+
"end_col_offset": 9,
183+
"end_lineno": 3,
184+
"lineno": 3,
185+
"name": "func3",
186+
"returns": {
187+
"ast_type": "Name",
188+
"col_offset": 22,
189+
"ctx": "Load",
190+
"end_col_offset": 24,
191+
"end_lineno": 3,
192+
"id": "int",
193+
"lineno": 3
194+
}
195+
}
196+
]
197+
}
198+
}
199+
}

0 commit comments

Comments
 (0)