Skip to content

Commit 09427af

Browse files
committed
Swift: Accept test changes.
1 parent ca31984 commit 09427af

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

swift/ql/test/extractor-tests/declarations/all.expected

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
| declarations.swift:1:1:7:1 | Foo |
22
| declarations.swift:1:8:1:8 | init |
33
| declarations.swift:1:8:1:8 | init |
4+
| declarations.swift:1:8:1:8 | self |
5+
| declarations.swift:1:8:1:8 | self |
46
| declarations.swift:1:8:1:8 | x |
57
| declarations.swift:2:3:2:11 | var ... = ... |
68
| declarations.swift:2:7:2:7 | (unnamed function decl) |
@@ -23,6 +25,8 @@
2325
| declarations.swift:9:1:9:34 | Bar |
2426
| declarations.swift:9:7:9:7 | deinit |
2527
| declarations.swift:9:7:9:7 | init |
28+
| declarations.swift:9:7:9:7 | self |
29+
| declarations.swift:9:7:9:7 | self |
2630
| declarations.swift:9:13:9:30 | var ... = ... |
2731
| declarations.swift:9:17:9:17 | (unnamed function decl) |
2832
| declarations.swift:9:17:9:17 | get |
@@ -56,13 +60,18 @@
5660
| declarations.swift:23:5:23:39 | var ... = ... |
5761
| declarations.swift:23:9:23:9 | (unnamed function decl) |
5862
| declarations.swift:23:9:23:9 | mustBeSettable |
63+
| declarations.swift:23:9:23:9 | self |
5964
| declarations.swift:23:31:23:31 | get |
65+
| declarations.swift:23:31:23:31 | self |
6066
| declarations.swift:23:35:23:35 | newValue |
67+
| declarations.swift:23:35:23:35 | self |
6168
| declarations.swift:23:35:23:35 | set |
6269
| declarations.swift:24:5:24:44 | var ... = ... |
6370
| declarations.swift:24:9:24:9 | doesNotNeedToBeSettable |
6471
| declarations.swift:24:40:24:40 | get |
72+
| declarations.swift:24:40:24:40 | self |
6573
| declarations.swift:25:5:25:22 | random() |
74+
| declarations.swift:25:10:25:10 | self |
6675
| declarations.swift:28:1:28:37 | a_function(a_parameter:) |
6776
| declarations.swift:28:17:28:31 | a_parameter |
6877
| declarations.swift:30:1:30:18 | var ... = ... |
@@ -90,15 +99,18 @@
9099
| declarations.swift:46:3:46:3 | self |
91100
| declarations.swift:46:3:48:3 | deinit |
92101
| declarations.swift:50:3:52:3 | +-(_:) |
102+
| declarations.swift:50:22:50:22 | self |
93103
| declarations.swift:50:26:50:33 | other |
94104
| declarations.swift:55:8:55:17 | +- |
95105
| declarations.swift:57:1:62:1 | precedencegroup ... |
96106
| declarations.swift:64:7:64:16 | +++ |
97107
| declarations.swift:66:7:66:21 | *** |
98108
| declarations.swift:68:18:74:1 | ZeroWrapper |
99109
| declarations.swift:68:25:68:25 | init |
110+
| declarations.swift:68:25:68:25 | self |
100111
| declarations.swift:69:3:73:3 | var ... = ... |
101112
| declarations.swift:69:7:69:7 | wrappedValue |
113+
| declarations.swift:70:5:70:5 | self |
102114
| declarations.swift:70:5:72:5 | get |
103115
| declarations.swift:76:1:79:1 | foo() |
104116
| declarations.swift:77:16:77:23 | var ... = ... |
@@ -113,18 +125,23 @@
113125
| declarations.swift:81:8:81:8 | hasWillSet2 |
114126
| declarations.swift:81:8:81:8 | init |
115127
| declarations.swift:81:8:81:8 | normalField |
128+
| declarations.swift:81:8:81:8 | self |
116129
| declarations.swift:82:3:87:3 | var ... = ... |
117130
| declarations.swift:82:7:82:7 | (unnamed function decl) |
118131
| declarations.swift:82:7:82:7 | self |
119132
| declarations.swift:82:7:82:7 | settableField |
120133
| declarations.swift:83:5:83:5 | newValue |
134+
| declarations.swift:83:5:83:5 | self |
121135
| declarations.swift:83:5:83:11 | set |
136+
| declarations.swift:84:5:84:5 | self |
122137
| declarations.swift:84:5:86:5 | get |
123138
| declarations.swift:91:3:93:3 | var ... = ... |
124139
| declarations.swift:91:7:91:7 | readOnlyField1 |
140+
| declarations.swift:91:27:91:27 | self |
125141
| declarations.swift:91:27:93:3 | get |
126142
| declarations.swift:96:3:100:3 | var ... = ... |
127143
| declarations.swift:96:7:96:7 | readOnlyField2 |
144+
| declarations.swift:97:5:97:5 | self |
128145
| declarations.swift:97:5:99:5 | get |
129146
| declarations.swift:102:3:102:21 | var ... = ... |
130147
| declarations.swift:102:7:102:7 | (unnamed function decl) |
@@ -141,14 +158,17 @@
141158
| declarations.swift:104:13:104:13 | x |
142159
| declarations.swift:104:13:104:13 | x |
143160
| declarations.swift:104:13:104:16 | x |
161+
| declarations.swift:105:5:105:5 | self |
144162
| declarations.swift:105:5:107:5 | get |
145163
| declarations.swift:108:5:108:5 | newValue |
164+
| declarations.swift:108:5:108:5 | self |
146165
| declarations.swift:108:5:108:11 | set |
147166
| declarations.swift:111:3:113:3 | subscript ... |
148167
| declarations.swift:111:13:111:13 | x |
149168
| declarations.swift:111:13:111:16 | x |
150169
| declarations.swift:111:21:111:21 | y |
151170
| declarations.swift:111:21:111:25 | y |
171+
| declarations.swift:111:37:111:37 | self |
152172
| declarations.swift:111:37:113:3 | get |
153173
| declarations.swift:115:3:117:3 | var ... = ... |
154174
| declarations.swift:115:7:115:7 | (unnamed function decl) |
@@ -159,6 +179,7 @@
159179
| declarations.swift:115:7:115:7 | self |
160180
| declarations.swift:115:7:115:7 | set |
161181
| declarations.swift:115:7:115:7 | value |
182+
| declarations.swift:116:5:116:5 | self |
162183
| declarations.swift:116:5:116:25 | willSet |
163184
| declarations.swift:116:13:116:13 | newValue |
164185
| declarations.swift:119:3:121:3 | var ... = ... |
@@ -171,6 +192,7 @@
171192
| declarations.swift:119:7:119:7 | set |
172193
| declarations.swift:119:7:119:7 | value |
173194
| declarations.swift:120:5:120:5 | newValue |
195+
| declarations.swift:120:5:120:5 | self |
174196
| declarations.swift:120:5:120:15 | willSet |
175197
| declarations.swift:123:3:125:3 | var ... = ... |
176198
| declarations.swift:123:7:123:7 | (unnamed function decl) |
@@ -181,6 +203,7 @@
181203
| declarations.swift:123:7:123:7 | self |
182204
| declarations.swift:123:7:123:7 | set |
183205
| declarations.swift:123:7:123:7 | value |
206+
| declarations.swift:124:5:124:5 | self |
184207
| declarations.swift:124:5:124:24 | didSet |
185208
| declarations.swift:124:12:124:12 | oldValue |
186209
| declarations.swift:127:3:129:3 | var ... = ... |
@@ -192,6 +215,7 @@
192215
| declarations.swift:127:7:127:7 | self |
193216
| declarations.swift:127:7:127:7 | set |
194217
| declarations.swift:127:7:127:7 | value |
218+
| declarations.swift:128:5:128:5 | self |
195219
| declarations.swift:128:5:128:14 | didSet |
196220
| declarations.swift:131:3:135:3 | var ... = ... |
197221
| declarations.swift:131:7:131:7 | (unnamed function decl) |
@@ -203,7 +227,9 @@
203227
| declarations.swift:131:7:131:7 | set |
204228
| declarations.swift:131:7:131:7 | value |
205229
| declarations.swift:132:5:132:5 | newValue |
230+
| declarations.swift:132:5:132:5 | self |
206231
| declarations.swift:132:5:132:15 | willSet |
232+
| declarations.swift:134:5:134:5 | self |
207233
| declarations.swift:134:5:134:14 | didSet |
208234
| declarations.swift:138:1:142:1 | extension |
209235
| declarations.swift:139:3:141:3 | id() |
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
| accessors.swift:2:9:2:9 | (unnamed function decl) | accessors.swift:2:9:2:9 | self |
2+
| accessors.swift:2:9:2:9 | get | accessors.swift:2:9:2:9 | self |
3+
| accessors.swift:2:9:2:9 | set | accessors.swift:2:9:2:9 | self |
4+
| accessors.swift:3:9:3:9 | (unnamed function decl) | accessors.swift:3:9:3:9 | self |
5+
| accessors.swift:4:9:4:28 | get | accessors.swift:4:9:4:9 | self |
6+
| accessors.swift:5:9:5:42 | set | accessors.swift:5:9:5:9 | self |
7+
| accessors.swift:7:9:7:9 | (unnamed function decl) | accessors.swift:7:9:7:9 | self |
8+
| accessors.swift:7:9:7:9 | get | accessors.swift:7:9:7:9 | self |
9+
| accessors.swift:7:9:7:9 | set | accessors.swift:7:9:7:9 | self |
10+
| accessors.swift:8:9:8:29 | willSet | accessors.swift:8:9:8:9 | self |
11+
| accessors.swift:11:9:11:9 | (unnamed function decl) | accessors.swift:11:9:11:9 | self |
12+
| accessors.swift:11:9:11:9 | get | accessors.swift:11:9:11:9 | self |
13+
| accessors.swift:11:9:11:9 | set | accessors.swift:11:9:11:9 | self |
14+
| accessors.swift:12:9:12:19 | willSet | accessors.swift:12:9:12:9 | self |
15+
| accessors.swift:15:9:15:9 | (unnamed function decl) | accessors.swift:15:9:15:9 | self |
16+
| accessors.swift:15:9:15:9 | get | accessors.swift:15:9:15:9 | self |
17+
| accessors.swift:15:9:15:9 | set | accessors.swift:15:9:15:9 | self |
18+
| accessors.swift:16:9:16:28 | didSet | accessors.swift:16:9:16:9 | self |
19+
| accessors.swift:19:9:19:9 | (unnamed function decl) | accessors.swift:19:9:19:9 | self |
20+
| accessors.swift:19:9:19:9 | get | accessors.swift:19:9:19:9 | self |
21+
| accessors.swift:19:9:19:9 | set | accessors.swift:19:9:19:9 | self |
22+
| accessors.swift:20:9:20:18 | didSet | accessors.swift:20:9:20:9 | self |
23+
| accessors.swift:23:9:23:9 | (unnamed function decl) | accessors.swift:23:9:23:9 | self |
24+
| accessors.swift:23:9:23:9 | get | accessors.swift:23:9:23:9 | self |
25+
| accessors.swift:23:9:23:9 | set | accessors.swift:23:9:23:9 | self |
26+
| accessors.swift:24:9:24:19 | willSet | accessors.swift:24:9:24:9 | self |
27+
| accessors.swift:26:9:26:18 | didSet | accessors.swift:26:9:26:9 | self |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| functions.swift:10:5:10:28 | noBody(x:) | functions.swift:10:10:10:10 | self |

swift/ql/test/extractor-tests/generated/decl/ParamDecl/ParamDecl.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
| param_decls.swift:1:18:1:29 | y | getInterfaceType: | Double | getName: | y | getType: | Double | isInout: | yes |
33
| param_decls.swift:2:10:2:13 | _ | getInterfaceType: | Int | getName: | _ | getType: | Int | isInout: | no |
44
| param_decls.swift:2:18:2:29 | y | getInterfaceType: | Double | getName: | y | getType: | Double | isInout: | yes |
5+
| param_decls.swift:4:8:4:8 | self | getInterfaceType: | S | getName: | self | getType: | S | isInout: | yes |
56
| param_decls.swift:5:5:5:5 | self | getInterfaceType: | S | getName: | self | getType: | S | isInout: | yes |
67
| param_decls.swift:5:15:5:15 | x | getInterfaceType: | Int | getName: | x | getType: | Int | isInout: | no |
78
| param_decls.swift:5:15:5:15 | x | getInterfaceType: | Int | getName: | x | getType: | Int | isInout: | no |
89
| param_decls.swift:5:15:5:18 | x | getInterfaceType: | Int | getName: | x | getType: | Int | isInout: | no |
910
| param_decls.swift:5:23:5:23 | y | getInterfaceType: | Int | getName: | y | getType: | Int | isInout: | no |
1011
| param_decls.swift:5:23:5:23 | y | getInterfaceType: | Int | getName: | y | getType: | Int | isInout: | no |
1112
| param_decls.swift:5:23:5:26 | y | getInterfaceType: | Int | getName: | y | getType: | Int | isInout: | no |
13+
| param_decls.swift:6:9:6:9 | self | getInterfaceType: | S | getName: | self | getType: | S | isInout: | no |
1214
| param_decls.swift:7:9:7:9 | newValue | getInterfaceType: | Int? | getName: | newValue | getType: | Int? | isInout: | no |
15+
| param_decls.swift:7:9:7:9 | self | getInterfaceType: | S | getName: | self | getType: | S | isInout: | yes |
1316
| param_decls.swift:12:13:12:22 | s | getInterfaceType: | String | getName: | s | getType: | String | isInout: | yes |
1417
| param_decls.swift:13:13:13:22 | s | getInterfaceType: | String | getName: | s | getType: | String | isInout: | yes |
1518
| param_decls.swift:14:26:14:26 | $0 | getInterfaceType: | Int | getName: | $0 | getType: | Int | isInout: | no |

0 commit comments

Comments
 (0)