1
+ { '@type': "Module",
2
+ '@role': [File, Module],
3
+ '@pos': { '@type': "uast:Positions",
4
+ },
5
+ body: [
6
+ { '@type': "FunctionDef",
7
+ '@token': "foo",
8
+ '@role': [Declaration, Function, Identifier, Name],
9
+ '@pos': { '@type': "uast:Positions",
10
+ start: { '@type': "uast:Position",
11
+ offset: 20,
12
+ line: 2,
13
+ col: 5,
14
+ },
15
+ end: { '@type': "uast:Position",
16
+ offset: 23,
17
+ line: 2,
18
+ col: 8,
19
+ },
20
+ },
21
+ args: { '@type': "arguments",
22
+ '@role': [Argument, Declaration, Function, Incomplete],
23
+ '@pos': { '@type': "uast:Positions",
24
+ },
25
+ args: [],
26
+ },
27
+ body: { '@type': "FunctionDef.body",
28
+ '@role': [Body, Declaration, Function],
29
+ 'body_stmts': [
30
+ { '@type': "Pass",
31
+ '@token': "pass",
32
+ '@role': [Noop, Statement],
33
+ '@pos': { '@type': "uast:Positions",
34
+ start: { '@type': "uast:Position",
35
+ offset: 48,
36
+ line: 3,
37
+ col: 5,
38
+ },
39
+ end: { '@type': "uast:Position",
40
+ offset: 52,
41
+ line: 3,
42
+ col: 9,
43
+ },
44
+ },
45
+ 'noops_previous': { '@type': "PreviousNoops",
46
+ '@role': [Noop],
47
+ '@pos': { '@type': "uast:Positions",
48
+ start: { '@type': "uast:Position",
49
+ offset: 0,
50
+ line: 1,
51
+ col: 1,
52
+ },
53
+ end: { '@type': "uast:Position",
54
+ offset: 14,
55
+ line: 1,
56
+ col: 15,
57
+ },
58
+ },
59
+ lines: [
60
+ { '@type': "NoopLine",
61
+ '@token': "# comment above\n",
62
+ '@role': [Comment, Noop],
63
+ '@pos': { '@type': "uast:Positions",
64
+ start: { '@type': "uast:Position",
65
+ offset: 0,
66
+ line: 1,
67
+ col: 1,
68
+ },
69
+ },
70
+ },
71
+ ],
72
+ },
73
+ },
74
+ ],
75
+ },
76
+ 'decorator_list': { '@type': "FunctionDef.decorators",
77
+ '@role': [Declaration, Function, Incomplete],
78
+ decorators: [],
79
+ },
80
+ 'noops_sameline': { '@type': "SameLineNoops",
81
+ '@role': [Comment],
82
+ '@pos': { '@type': "uast:Positions",
83
+ start: { '@type': "uast:Position",
84
+ offset: 26,
85
+ line: 2,
86
+ col: 11,
87
+ },
88
+ end: { '@type': "uast:Position",
89
+ offset: 42,
90
+ line: 2,
91
+ col: 27,
92
+ },
93
+ },
94
+ 'noop_lines': [
95
+ { '@type': "NoopSameLine",
96
+ '@token': "# comment inline",
97
+ '@role': [Comment, Noop],
98
+ '@pos': { '@type': "uast:Positions",
99
+ },
100
+ },
101
+ ],
102
+ },
103
+ returns: ~,
104
+ },
105
+ ],
106
+ 'noops_remainder': { '@type': "RemainderNoops",
107
+ '@role': [Noop],
108
+ '@pos': { '@type': "uast:Positions",
109
+ start: { '@type': "uast:Position",
110
+ offset: 53,
111
+ line: 4,
112
+ col: 1,
113
+ },
114
+ end: { '@type': "uast:Position",
115
+ offset: 53,
116
+ line: 4,
117
+ col: 1,
118
+ },
119
+ },
120
+ lines: [
121
+ { '@type': "NoopLine",
122
+ '@token': "# comment after\n",
123
+ '@role': [Comment, Noop],
124
+ '@pos': { '@type': "uast:Positions",
125
+ start: { '@type': "uast:Position",
126
+ offset: 53,
127
+ line: 4,
128
+ col: 1,
129
+ },
130
+ },
131
+ },
132
+ ],
133
+ },
134
+ }
0 commit comments